Permalink
Browse files

Language selector

  • Loading branch information...
1 parent 32f2dac commit da3ca6cb22d8af152a392251abf7e5fcc336dc8d @dioslaska dioslaska committed Sep 17, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 demo.html
View
@@ -87,7 +87,7 @@
}
$('select').scroller({ preset: 'select' }).bind('change', function() {
- $('#test').val('').scroller('destroy').scroller($.extend(opt[$('#demo').val()], { theme: $('#theme').val(), mode: $('#mode').val() }));
+ $('#test').val('').scroller('destroy').scroller($.extend(opt[$('#demo').val()], { theme: $('#theme').val(), mode: $('#mode').val(), lang: $('#language').val() }));
$('#demo').val() == 'btn' ? $('#buttons').show() : $('#buttons').hide();
});
@@ -145,6 +145,14 @@
<option value="inline">Inline</option>
</select>
</div>
+ <div data-role="fieldcontain">
+ <label for="language">Language</label>
+ <select name="language" id="language" data-role="none">
+ <option value="">English</option>
+ <option value="de">Deutsch</option>
+ <option value="hu">Magyar</option>
+ </select>
+ </div>
<div data-role="fieldcontain" class="inline">
<label for="test">Click here to try</label>
<input type="text" name="test" id="test" />
@@ -158,3 +166,4 @@
</div>
</body>
</html>
+

0 comments on commit da3ca6c

Please sign in to comment.