aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-25 18:10:07 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-25 18:10:07 +0200
commit0e7bef4401e84a8440278662b74c5d3c96bc88b8 (patch)
tree706882ee876b71c936472a0c6250dd5656aa9e3f /ui/jquery.ui.spinner.js
parent44ca830ee850a6771221b799ff1e0fbafc9e7a13 (diff)
downloadjquery-ui-0e7bef4401e84a8440278662b74c5d3c96bc88b8.tar.gz
jquery-ui-0e7bef4401e84a8440278662b74c5d3c96bc88b8.zip
Slider: Removing dir option. Implementation caused more damage then being useful - will eventually implement RTL support in all widgets.
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 022e7f7da..4cfbe62e1 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -21,7 +21,6 @@ var hover = 'ui-state-hover',
$.widget('ui.spinner', {
options: {
- dir: 'ltr',
incremental: true,
max: Number.MAX_VALUE,
min: -Number.MAX_VALUE,
@@ -138,13 +137,11 @@ $.widget('ui.spinner', {
self.uiSpinner = uiSpinner;
},
_uiSpinnerHtml: function() {
- return '<div role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all ui-spinner-' + this.options.dir + '"></div>';
+ return '<div role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all"></div>';
},
_buttonHtml: function() {
- return '<a class="ui-spinner-button ui-spinner-up ui-corner-t' + this.options.dir.substr(-1,1) +
- '"><span class="ui-icon ui-icon-triangle-1-n">&#9650;</span></a>' +
- '<a class="ui-spinner-button ui-spinner-down ui-corner-b' + this.options.dir.substr(-1,1) +
- '"><span class="ui-icon ui-icon-triangle-1-s">&#9660;</span></a>';
+ return '<a class="ui-spinner-button ui-spinner-up ui-corner-tr"><span class="ui-icon ui-icon-triangle-1-n">&#9650;</span></a>' +
+ '<a class="ui-spinner-button ui-spinner-down ui-corner-br"><span class="ui-icon ui-icon-triangle-1-s">&#9660;</span></a>';
},
_start: function(event) {
if (!this.spinning && this._trigger('start', event, { value: this.value()}) !== false) {