vendor/assets/javascripts/webshims/shims/form-shim-extend2.js in webshims-rails-1.12.0 vs vendor/assets/javascripts/webshims/shims/form-shim-extend2.js in webshims-rails-1.12.2

- old
+ new

@@ -479,15 +479,12 @@ (function(){ var nan = parseInt('NaN', 10); var updateProgress = function(progress){ - var position; + var position = $.prop(progress, 'position'); - - position = $.prop(progress, 'position'); - $.attr(progress, 'data-position', position); $('> span', progress).css({width: (position < 0 ? 100 : position * 100) +'%'}); }; var desc = { position: { @@ -506,12 +503,13 @@ $.attr(this, 'aria-valuenow', ret * 100); if(updateProgress.isInChange == 'max'){ $.attr(this, 'aria-valuemax', max); } } + $(this).removeClass('ws-indeterminate'); } else if(updateProgress.isInChange) { - $(this).removeAttr('aria-valuenow'); + $(this).removeAttr('aria-valuenow').addClass('ws-indeterminate'); } return ret; }, writeable: false } @@ -582,10 +580,12 @@ if(labels.length){ $.attr(this, 'aria-labelledby', labels.join(' ')); } else { webshims.info("you should use label elements for your prgogress elements"); } - + if($(this).css('direction') == 'rtl'){ + $(this).addClass('ws-is-rtl'); + } updateProgress.isInChange = 'max'; updateProgress(this); updateProgress.isInChange = false; }, desc