jquery-ui-rails 4.1.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/History.md +18 -0
- data/README.md +4 -3
- data/Rakefile +9 -0
- data/VERSIONS.md +4 -0
- data/app/assets/javascripts/jquery.ui.accordion.js +13 -15
- data/app/assets/javascripts/jquery.ui.autocomplete.js +12 -16
- data/app/assets/javascripts/jquery.ui.button.js +21 -45
- data/app/assets/javascripts/jquery.ui.core.js +3 -3
- data/app/assets/javascripts/jquery.ui.datepicker-es.js +7 -7
- data/app/assets/javascripts/jquery.ui.datepicker-fi.js +1 -1
- data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +7 -7
- data/app/assets/javascripts/jquery.ui.datepicker-fr.js +6 -6
- data/app/assets/javascripts/jquery.ui.datepicker-is.js +1 -1
- data/app/assets/javascripts/jquery.ui.datepicker-lt.js +2 -2
- data/app/assets/javascripts/jquery.ui.datepicker-lv.js +4 -4
- data/app/assets/javascripts/jquery.ui.datepicker-pt.js +1 -1
- data/app/assets/javascripts/jquery.ui.datepicker.js +4 -4
- data/app/assets/javascripts/jquery.ui.dialog.js +25 -10
- data/app/assets/javascripts/jquery.ui.draggable.js +3 -3
- data/app/assets/javascripts/jquery.ui.droppable.js +31 -14
- data/app/assets/javascripts/jquery.ui.effect-blind.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-bounce.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-clip.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-drop.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-explode.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-fade.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-fold.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-highlight.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-pulsate.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-scale.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-shake.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-slide.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect-transfer.js +2 -2
- data/app/assets/javascripts/jquery.ui.effect.js +3 -3
- data/app/assets/javascripts/jquery.ui.menu.js +14 -8
- data/app/assets/javascripts/jquery.ui.mouse.js +3 -3
- data/app/assets/javascripts/jquery.ui.position.js +11 -7
- data/app/assets/javascripts/jquery.ui.progressbar.js +3 -3
- data/app/assets/javascripts/jquery.ui.resizable.js +20 -10
- data/app/assets/javascripts/jquery.ui.selectable.js +3 -3
- data/app/assets/javascripts/jquery.ui.slider.js +11 -7
- data/app/assets/javascripts/jquery.ui.sortable.js +18 -14
- data/app/assets/javascripts/jquery.ui.spinner.js +9 -5
- data/app/assets/javascripts/jquery.ui.tabs.js +8 -5
- data/app/assets/javascripts/jquery.ui.tooltip.js +3 -3
- data/app/assets/javascripts/jquery.ui.widget.js +5 -5
- data/app/assets/stylesheets/jquery.ui.accordion.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.all.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.autocomplete.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.base.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.button.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.core.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.datepicker.css.erb +3 -6
- data/app/assets/stylesheets/jquery.ui.dialog.css.erb +5 -4
- data/app/assets/stylesheets/jquery.ui.menu.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +8 -3
- data/app/assets/stylesheets/jquery.ui.resizable.css.erb +2 -4
- data/app/assets/stylesheets/jquery.ui.selectable.css.erb +2 -4
- data/app/assets/stylesheets/jquery.ui.slider.css.erb +3 -3
- data/app/assets/stylesheets/jquery.ui.spinner.css.erb +5 -5
- data/app/assets/stylesheets/jquery.ui.tabs.css.erb +8 -9
- data/app/assets/stylesheets/jquery.ui.theme.css.erb +25 -4
- data/app/assets/stylesheets/jquery.ui.tooltip.css.erb +4 -2
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +5 -5
    
        data/History.md
    CHANGED
    
    | @@ -1,5 +1,23 @@ | |
| 1 1 | 
             
            # master
         | 
| 2 2 |  | 
| 3 | 
            +
            # 4.2.1
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Update to jQuery UI 1.10.4
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            # 4.2.0
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * Bump Rails dependency to `>=3.2.16`
         | 
| 10 | 
            +
            * Re-release 4.1.1 as 4.2.0
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            # 4.1.2
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            * Re-release 4.1.0 as 4.1.2; last version compatible with Rails 3.1
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            # 4.1.1
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            * Declare image dependencies using `//= depend_on_asset`, to stop the
         | 
| 19 | 
            +
              Sprockets cache from going stale.
         | 
| 20 | 
            +
             | 
| 3 21 | 
             
            # 4.1.0
         | 
| 4 22 |  | 
| 5 23 | 
             
            * Add Jquery::Ui::Rails::JQUERY_UI_VERSION constant
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,9 +1,10 @@ | |
| 1 1 | 
             
            # jquery-ui-rails
         | 
| 2 2 |  | 
| 3 | 
            -
            [](http://travis-ci.org/joliss/jquery-ui-rails) | 
| 3 | 
            +
            [](http://travis-ci.org/joliss/jquery-ui-rails)
         | 
| 4 | 
            +
            [](https://gemnasium.com/joliss/jquery-ui-rails)
         | 
| 4 5 |  | 
| 5 | 
            -
            This gem packages the jQuery UI  | 
| 6 | 
            -
            images) for the Rails  | 
| 6 | 
            +
            This gem packages the jQuery UI assets (JavaScripts, stylesheets, and
         | 
| 7 | 
            +
            images) for the Rails [asset
         | 
| 7 8 | 
             
            pipeline](http://guides.rubyonrails.org/asset_pipeline.html), so you never have
         | 
| 8 9 | 
             
            to download a custom package through the [web
         | 
| 9 10 | 
             
            interface](http://jqueryui.com/download) again.
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -1,3 +1,4 @@ | |
| 1 | 
            +
            Encoding.default_external = "UTF-8" if defined?(Encoding)
         | 
| 1 2 | 
             
            require 'json'
         | 
| 2 3 | 
             
            require 'bundler/gem_tasks'
         | 
| 3 4 |  | 
| @@ -87,6 +88,13 @@ def protect_copyright_notice(source_code) | |
| 87 88 | 
             
              source_code.gsub!(/\A\s*\/\*\r?\n/, "/*!\n")
         | 
| 88 89 | 
             
            end
         | 
| 89 90 |  | 
| 91 | 
            +
            def build_image_dependencies(source_code)
         | 
| 92 | 
            +
              image_dependencies = Set.new source_code.scan(/url\("?images\/([-_.a-zA-Z0-9]+)"?\)/).map(&:first)
         | 
| 93 | 
            +
              code = image_dependencies.inject("") do |acc, img|
         | 
| 94 | 
            +
                acc += " *= depend_on_asset \"jquery-ui/#{img}\"\n"
         | 
| 95 | 
            +
              end
         | 
| 96 | 
            +
            end
         | 
| 97 | 
            +
             | 
| 90 98 | 
             
            desc "Remove the app directory"
         | 
| 91 99 | 
             
            task :clean do
         | 
| 92 100 | 
             
              rm_rf 'app'
         | 
| @@ -181,6 +189,7 @@ task :stylesheets => :submodule do | |
| 181 189 | 
             
                }
         | 
| 182 190 | 
             
                # Be cute: collapse multiple require comment blocks into one
         | 
| 183 191 | 
             
                source_code.gsub!(/^( \*= require .*)\n \*\/(\n+)\/\*\n(?= \*= require )/, '\1\2')
         | 
| 192 | 
            +
                source_code.gsub!(/\A(\/\*!.+?\*\/\s)/m, "\\1\n/*\n#{build_image_dependencies(source_code)} */\n\n") unless build_image_dependencies(source_code).empty?
         | 
| 184 193 | 
             
                # Replace hard-coded image URLs with asset path helpers
         | 
| 185 194 | 
             
                source_code.gsub!(/url\("?images\/([-_.a-zA-Z0-9]+)"?\)/, 'url(<%= image_path("jquery-ui/\1") %>)')
         | 
| 186 195 | 
             
                File.open("#{target_dir}/#{basename}.erb", "w") do |out|
         | 
    
        data/VERSIONS.md
    CHANGED
    
    
| @@ -2,10 +2,10 @@ | |
| 2 2 | 
             
            //= require jquery.ui.widget
         | 
| 3 3 |  | 
| 4 4 | 
             
            /*!
         | 
| 5 | 
            -
             * jQuery UI Accordion 1.10. | 
| 5 | 
            +
             * jQuery UI Accordion 1.10.4
         | 
| 6 6 | 
             
             * http://jqueryui.com
         | 
| 7 7 | 
             
             *
         | 
| 8 | 
            -
             * Copyright  | 
| 8 | 
            +
             * Copyright 2014 jQuery Foundation and other contributors
         | 
| 9 9 | 
             
             * Released under the MIT license.
         | 
| 10 10 | 
             
             * http://jquery.org/license
         | 
| 11 11 | 
             
             *
         | 
| @@ -27,7 +27,7 @@ showProps.height = showProps.paddingTop = showProps.paddingBottom = | |
| 27 27 | 
             
            	showProps.borderTopWidth = showProps.borderBottomWidth = "show";
         | 
| 28 28 |  | 
| 29 29 | 
             
            $.widget( "ui.accordion", {
         | 
| 30 | 
            -
            	version: "1.10. | 
| 30 | 
            +
            	version: "1.10.4",
         | 
| 31 31 | 
             
            	options: {
         | 
| 32 32 | 
             
            		active: 0,
         | 
| 33 33 | 
             
            		animate: {},
         | 
| @@ -105,6 +105,7 @@ $.widget( "ui.accordion", { | |
| 105 105 | 
             
            		this.headers
         | 
| 106 106 | 
             
            			.removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
         | 
| 107 107 | 
             
            			.removeAttr( "role" )
         | 
| 108 | 
            +
            			.removeAttr( "aria-expanded" )
         | 
| 108 109 | 
             
            			.removeAttr( "aria-selected" )
         | 
| 109 110 | 
             
            			.removeAttr( "aria-controls" )
         | 
| 110 111 | 
             
            			.removeAttr( "tabIndex" )
         | 
| @@ -119,7 +120,6 @@ $.widget( "ui.accordion", { | |
| 119 120 | 
             
            		contents = this.headers.next()
         | 
| 120 121 | 
             
            			.css( "display", "" )
         | 
| 121 122 | 
             
            			.removeAttr( "role" )
         | 
| 122 | 
            -
            			.removeAttr( "aria-expanded" )
         | 
| 123 123 | 
             
            			.removeAttr( "aria-hidden" )
         | 
| 124 124 | 
             
            			.removeAttr( "aria-labelledby" )
         | 
| 125 125 | 
             
            			.removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" )
         | 
| @@ -170,7 +170,6 @@ $.widget( "ui.accordion", { | |
| 170 170 | 
             
            	},
         | 
| 171 171 |  | 
| 172 172 | 
             
            	_keydown: function( event ) {
         | 
| 173 | 
            -
            		/*jshint maxcomplexity:15*/
         | 
| 174 173 | 
             
            		if ( event.altKey || event.ctrlKey ) {
         | 
| 175 174 | 
             
            			return;
         | 
| 176 175 | 
             
            		}
         | 
| @@ -297,11 +296,11 @@ $.widget( "ui.accordion", { | |
| 297 296 | 
             
            			.not( this.active )
         | 
| 298 297 | 
             
            			.attr({
         | 
| 299 298 | 
             
            				"aria-selected": "false",
         | 
| 299 | 
            +
            				"aria-expanded": "false",
         | 
| 300 300 | 
             
            				tabIndex: -1
         | 
| 301 301 | 
             
            			})
         | 
| 302 302 | 
             
            			.next()
         | 
| 303 303 | 
             
            				.attr({
         | 
| 304 | 
            -
            					"aria-expanded": "false",
         | 
| 305 304 | 
             
            					"aria-hidden": "true"
         | 
| 306 305 | 
             
            				})
         | 
| 307 306 | 
             
            				.hide();
         | 
| @@ -312,11 +311,11 @@ $.widget( "ui.accordion", { | |
| 312 311 | 
             
            		} else {
         | 
| 313 312 | 
             
            			this.active.attr({
         | 
| 314 313 | 
             
            				"aria-selected": "true",
         | 
| 314 | 
            +
            				"aria-expanded": "true",
         | 
| 315 315 | 
             
            				tabIndex: 0
         | 
| 316 316 | 
             
            			})
         | 
| 317 317 | 
             
            			.next()
         | 
| 318 318 | 
             
            				.attr({
         | 
| 319 | 
            -
            					"aria-expanded": "true",
         | 
| 320 319 | 
             
            					"aria-hidden": "false"
         | 
| 321 320 | 
             
            				});
         | 
| 322 321 | 
             
            		}
         | 
| @@ -471,7 +470,6 @@ $.widget( "ui.accordion", { | |
| 471 470 | 
             
            		}
         | 
| 472 471 |  | 
| 473 472 | 
             
            		toHide.attr({
         | 
| 474 | 
            -
            			"aria-expanded": "false",
         | 
| 475 473 | 
             
            			"aria-hidden": "true"
         | 
| 476 474 | 
             
            		});
         | 
| 477 475 | 
             
            		toHide.prev().attr( "aria-selected", "false" );
         | 
| @@ -479,7 +477,10 @@ $.widget( "ui.accordion", { | |
| 479 477 | 
             
            		// if we're opening from collapsed state, remove the previous header from the tab order
         | 
| 480 478 | 
             
            		// if we're collapsing, then keep the collapsing header in the tab order
         | 
| 481 479 | 
             
            		if ( toShow.length && toHide.length ) {
         | 
| 482 | 
            -
            			toHide.prev().attr( | 
| 480 | 
            +
            			toHide.prev().attr({
         | 
| 481 | 
            +
            				"tabIndex": -1,
         | 
| 482 | 
            +
            				"aria-expanded": "false"
         | 
| 483 | 
            +
            			});
         | 
| 483 484 | 
             
            		} else if ( toShow.length ) {
         | 
| 484 485 | 
             
            			this.headers.filter(function() {
         | 
| 485 486 | 
             
            				return $( this ).attr( "tabIndex" ) === 0;
         | 
| @@ -488,14 +489,12 @@ $.widget( "ui.accordion", { | |
| 488 489 | 
             
            		}
         | 
| 489 490 |  | 
| 490 491 | 
             
            		toShow
         | 
| 491 | 
            -
            			.attr( | 
| 492 | 
            -
            				"aria-expanded": "true",
         | 
| 493 | 
            -
            				"aria-hidden": "false"
         | 
| 494 | 
            -
            			})
         | 
| 492 | 
            +
            			.attr( "aria-hidden", "false" )
         | 
| 495 493 | 
             
            			.prev()
         | 
| 496 494 | 
             
            				.attr({
         | 
| 497 495 | 
             
            					"aria-selected": "true",
         | 
| 498 | 
            -
            					tabIndex: 0
         | 
| 496 | 
            +
            					tabIndex: 0,
         | 
| 497 | 
            +
            					"aria-expanded": "true"
         | 
| 499 498 | 
             
            				});
         | 
| 500 499 | 
             
            	},
         | 
| 501 500 |  | 
| @@ -567,7 +566,6 @@ $.widget( "ui.accordion", { | |
| 567 566 | 
             
            		if ( toHide.length ) {
         | 
| 568 567 | 
             
            			toHide.parent()[0].className = toHide.parent()[0].className;
         | 
| 569 568 | 
             
            		}
         | 
| 570 | 
            -
             | 
| 571 569 | 
             
            		this._trigger( "activate", null, data );
         | 
| 572 570 | 
             
            	}
         | 
| 573 571 | 
             
            });
         | 
| @@ -4,10 +4,10 @@ | |
| 4 4 | 
             
            //= require jquery.ui.position
         | 
| 5 5 |  | 
| 6 6 | 
             
            /*!
         | 
| 7 | 
            -
             * jQuery UI Autocomplete 1.10. | 
| 7 | 
            +
             * jQuery UI Autocomplete 1.10.4
         | 
| 8 8 | 
             
             * http://jqueryui.com
         | 
| 9 9 | 
             
             *
         | 
| 10 | 
            -
             * Copyright  | 
| 10 | 
            +
             * Copyright 2014 jQuery Foundation and other contributors
         | 
| 11 11 | 
             
             * Released under the MIT license.
         | 
| 12 12 | 
             
             * http://jquery.org/license
         | 
| 13 13 | 
             
             *
         | 
| @@ -21,11 +21,8 @@ | |
| 21 21 | 
             
             */
         | 
| 22 22 | 
             
            (function( $, undefined ) {
         | 
| 23 23 |  | 
| 24 | 
            -
            // used to prevent race conditions with remote data sources
         | 
| 25 | 
            -
            var requestIndex = 0;
         | 
| 26 | 
            -
             | 
| 27 24 | 
             
            $.widget( "ui.autocomplete", {
         | 
| 28 | 
            -
            	version: "1.10. | 
| 25 | 
            +
            	version: "1.10.4",
         | 
| 29 26 | 
             
            	defaultElement: "<input>",
         | 
| 30 27 | 
             
            	options: {
         | 
| 31 28 | 
             
            		appendTo: null,
         | 
| @@ -49,6 +46,7 @@ $.widget( "ui.autocomplete", { | |
| 49 46 | 
             
            		select: null
         | 
| 50 47 | 
             
            	},
         | 
| 51 48 |  | 
| 49 | 
            +
            	requestIndex: 0,
         | 
| 52 50 | 
             
            	pending: 0,
         | 
| 53 51 |  | 
| 54 52 | 
             
            	_create: function() {
         | 
| @@ -82,7 +80,6 @@ $.widget( "ui.autocomplete", { | |
| 82 80 |  | 
| 83 81 | 
             
            		this._on( this.element, {
         | 
| 84 82 | 
             
            			keydown: function( event ) {
         | 
| 85 | 
            -
            				/*jshint maxcomplexity:15*/
         | 
| 86 83 | 
             
            				if ( this.element.prop( "readOnly" ) ) {
         | 
| 87 84 | 
             
            					suppressKeyPress = true;
         | 
| 88 85 | 
             
            					suppressInput = true;
         | 
| @@ -425,19 +422,18 @@ $.widget( "ui.autocomplete", { | |
| 425 422 | 
             
            	},
         | 
| 426 423 |  | 
| 427 424 | 
             
            	_response: function() {
         | 
| 428 | 
            -
            		var  | 
| 429 | 
            -
            			index = ++requestIndex;
         | 
| 425 | 
            +
            		var index = ++this.requestIndex;
         | 
| 430 426 |  | 
| 431 | 
            -
            		return function( content ) {
         | 
| 432 | 
            -
            			if ( index === requestIndex ) {
         | 
| 433 | 
            -
            				 | 
| 427 | 
            +
            		return $.proxy(function( content ) {
         | 
| 428 | 
            +
            			if ( index === this.requestIndex ) {
         | 
| 429 | 
            +
            				this.__response( content );
         | 
| 434 430 | 
             
            			}
         | 
| 435 431 |  | 
| 436 | 
            -
            			 | 
| 437 | 
            -
            			if ( ! | 
| 438 | 
            -
            				 | 
| 432 | 
            +
            			this.pending--;
         | 
| 433 | 
            +
            			if ( !this.pending ) {
         | 
| 434 | 
            +
            				this.element.removeClass( "ui-autocomplete-loading" );
         | 
| 439 435 | 
             
            			}
         | 
| 440 | 
            -
            		};
         | 
| 436 | 
            +
            		}, this );
         | 
| 441 437 | 
             
            	},
         | 
| 442 438 |  | 
| 443 439 | 
             
            	__response: function( content ) {
         | 
| @@ -2,10 +2,10 @@ | |
| 2 2 | 
             
            //= require jquery.ui.widget
         | 
| 3 3 |  | 
| 4 4 | 
             
            /*!
         | 
| 5 | 
            -
             * jQuery UI Button 1.10. | 
| 5 | 
            +
             * jQuery UI Button 1.10.4
         | 
| 6 6 | 
             
             * http://jqueryui.com
         | 
| 7 7 | 
             
             *
         | 
| 8 | 
            -
             * Copyright  | 
| 8 | 
            +
             * Copyright 2014 jQuery Foundation and other contributors
         | 
| 9 9 | 
             
             * Released under the MIT license.
         | 
| 10 10 | 
             
             * http://jquery.org/license
         | 
| 11 11 | 
             
             *
         | 
| @@ -17,9 +17,8 @@ | |
| 17 17 | 
             
             */
         | 
| 18 18 | 
             
            (function( $, undefined ) {
         | 
| 19 19 |  | 
| 20 | 
            -
            var lastActive, | 
| 20 | 
            +
            var lastActive,
         | 
| 21 21 | 
             
            	baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
         | 
| 22 | 
            -
            	stateClasses = "ui-state-hover ui-state-active ",
         | 
| 23 22 | 
             
            	typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
         | 
| 24 23 | 
             
            	formResetHandler = function() {
         | 
| 25 24 | 
             
            		var form = $( this );
         | 
| @@ -46,7 +45,7 @@ var lastActive, startXPos, startYPos, clickDragged, | |
| 46 45 | 
             
            	};
         | 
| 47 46 |  | 
| 48 47 | 
             
            $.widget( "ui.button", {
         | 
| 49 | 
            -
            	version: "1.10. | 
| 48 | 
            +
            	version: "1.10.4",
         | 
| 50 49 | 
             
            	defaultElement: "<button>",
         | 
| 51 50 | 
             
            	options: {
         | 
| 52 51 | 
             
            		disabled: null,
         | 
| @@ -74,8 +73,7 @@ $.widget( "ui.button", { | |
| 74 73 | 
             
            		var that = this,
         | 
| 75 74 | 
             
            			options = this.options,
         | 
| 76 75 | 
             
            			toggleButton = this.type === "checkbox" || this.type === "radio",
         | 
| 77 | 
            -
            			activeClass = !toggleButton ? "ui-state-active" : "" | 
| 78 | 
            -
            			focusClass = "ui-state-focus";
         | 
| 76 | 
            +
            			activeClass = !toggleButton ? "ui-state-active" : "";
         | 
| 79 77 |  | 
| 80 78 | 
             
            		if ( options.label === null ) {
         | 
| 81 79 | 
             
            			options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());
         | 
| @@ -107,53 +105,32 @@ $.widget( "ui.button", { | |
| 107 105 | 
             
            				}
         | 
| 108 106 | 
             
            			});
         | 
| 109 107 |  | 
| 110 | 
            -
            		 | 
| 111 | 
            -
             | 
| 112 | 
            -
             | 
| 113 | 
            -
             | 
| 114 | 
            -
             | 
| 115 | 
            -
            			 | 
| 116 | 
            -
             | 
| 117 | 
            -
             | 
| 108 | 
            +
            		// Can't use _focusable() because the element that receives focus
         | 
| 109 | 
            +
            		// and the element that gets the ui-state-focus class are different
         | 
| 110 | 
            +
            		this._on({
         | 
| 111 | 
            +
            			focus: function() {
         | 
| 112 | 
            +
            				this.buttonElement.addClass( "ui-state-focus" );
         | 
| 113 | 
            +
            			},
         | 
| 114 | 
            +
            			blur: function() {
         | 
| 115 | 
            +
            				this.buttonElement.removeClass( "ui-state-focus" );
         | 
| 116 | 
            +
            			}
         | 
| 117 | 
            +
            		});
         | 
| 118 118 |  | 
| 119 119 | 
             
            		if ( toggleButton ) {
         | 
| 120 120 | 
             
            			this.element.bind( "change" + this.eventNamespace, function() {
         | 
| 121 | 
            -
            				if ( clickDragged ) {
         | 
| 122 | 
            -
            					return;
         | 
| 123 | 
            -
            				}
         | 
| 124 121 | 
             
            				that.refresh();
         | 
| 125 122 | 
             
            			});
         | 
| 126 | 
            -
            			// if mouse moves between mousedown and mouseup (drag) set clickDragged flag
         | 
| 127 | 
            -
            			// prevents issue where button state changes but checkbox/radio checked state
         | 
| 128 | 
            -
            			// does not in Firefox (see ticket #6970)
         | 
| 129 | 
            -
            			this.buttonElement
         | 
| 130 | 
            -
            				.bind( "mousedown" + this.eventNamespace, function( event ) {
         | 
| 131 | 
            -
            					if ( options.disabled ) {
         | 
| 132 | 
            -
            						return;
         | 
| 133 | 
            -
            					}
         | 
| 134 | 
            -
            					clickDragged = false;
         | 
| 135 | 
            -
            					startXPos = event.pageX;
         | 
| 136 | 
            -
            					startYPos = event.pageY;
         | 
| 137 | 
            -
            				})
         | 
| 138 | 
            -
            				.bind( "mouseup" + this.eventNamespace, function( event ) {
         | 
| 139 | 
            -
            					if ( options.disabled ) {
         | 
| 140 | 
            -
            						return;
         | 
| 141 | 
            -
            					}
         | 
| 142 | 
            -
            					if ( startXPos !== event.pageX || startYPos !== event.pageY ) {
         | 
| 143 | 
            -
            						clickDragged = true;
         | 
| 144 | 
            -
            					}
         | 
| 145 | 
            -
            			});
         | 
| 146 123 | 
             
            		}
         | 
| 147 124 |  | 
| 148 125 | 
             
            		if ( this.type === "checkbox" ) {
         | 
| 149 126 | 
             
            			this.buttonElement.bind( "click" + this.eventNamespace, function() {
         | 
| 150 | 
            -
            				if ( options.disabled  | 
| 127 | 
            +
            				if ( options.disabled ) {
         | 
| 151 128 | 
             
            					return false;
         | 
| 152 129 | 
             
            				}
         | 
| 153 130 | 
             
            			});
         | 
| 154 131 | 
             
            		} else if ( this.type === "radio" ) {
         | 
| 155 132 | 
             
            			this.buttonElement.bind( "click" + this.eventNamespace, function() {
         | 
| 156 | 
            -
            				if ( options.disabled  | 
| 133 | 
            +
            				if ( options.disabled ) {
         | 
| 157 134 | 
             
            					return false;
         | 
| 158 135 | 
             
            				}
         | 
| 159 136 | 
             
            				$( this ).addClass( "ui-state-active" );
         | 
| @@ -263,7 +240,7 @@ $.widget( "ui.button", { | |
| 263 240 | 
             
            		this.element
         | 
| 264 241 | 
             
            			.removeClass( "ui-helper-hidden-accessible" );
         | 
| 265 242 | 
             
            		this.buttonElement
         | 
| 266 | 
            -
            			.removeClass( baseClasses + "  | 
| 243 | 
            +
            			.removeClass( baseClasses + " ui-state-active " + typeClasses )
         | 
| 267 244 | 
             
            			.removeAttr( "role" )
         | 
| 268 245 | 
             
            			.removeAttr( "aria-pressed" )
         | 
| 269 246 | 
             
            			.html( this.buttonElement.find(".ui-button-text").html() );
         | 
| @@ -276,10 +253,9 @@ $.widget( "ui.button", { | |
| 276 253 | 
             
            	_setOption: function( key, value ) {
         | 
| 277 254 | 
             
            		this._super( key, value );
         | 
| 278 255 | 
             
            		if ( key === "disabled" ) {
         | 
| 256 | 
            +
            			this.element.prop( "disabled", !!value );
         | 
| 279 257 | 
             
            			if ( value ) {
         | 
| 280 | 
            -
            				this. | 
| 281 | 
            -
            			} else {
         | 
| 282 | 
            -
            				this.element.prop( "disabled", false );
         | 
| 258 | 
            +
            				this.buttonElement.removeClass( "ui-state-focus" );
         | 
| 283 259 | 
             
            			}
         | 
| 284 260 | 
             
            			return;
         | 
| 285 261 | 
             
            		}
         | 
| @@ -363,7 +339,7 @@ $.widget( "ui.button", { | |
| 363 339 | 
             
            });
         | 
| 364 340 |  | 
| 365 341 | 
             
            $.widget( "ui.buttonset", {
         | 
| 366 | 
            -
            	version: "1.10. | 
| 342 | 
            +
            	version: "1.10.4",
         | 
| 367 343 | 
             
            	options: {
         | 
| 368 344 | 
             
            		items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
         | 
| 369 345 | 
             
            	},
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            /*!
         | 
| 2 | 
            -
             * jQuery UI Core 1.10. | 
| 2 | 
            +
             * jQuery UI Core 1.10.4
         | 
| 3 3 | 
             
             * http://jqueryui.com
         | 
| 4 4 | 
             
             *
         | 
| 5 | 
            -
             * Copyright  | 
| 5 | 
            +
             * Copyright 2014 jQuery Foundation and other contributors
         | 
| 6 6 | 
             
             * Released under the MIT license.
         | 
| 7 7 | 
             
             * http://jquery.org/license
         | 
| 8 8 | 
             
             *
         | 
| @@ -17,7 +17,7 @@ var uuid = 0, | |
| 17 17 | 
             
            $.ui = $.ui || {};
         | 
| 18 18 |  | 
| 19 19 | 
             
            $.extend( $.ui, {
         | 
| 20 | 
            -
            	version: "1.10. | 
| 20 | 
            +
            	version: "1.10.4",
         | 
| 21 21 |  | 
| 22 22 | 
             
            	keyCode: {
         | 
| 23 23 | 
             
            		BACKSPACE: 8,
         | 
| @@ -6,13 +6,13 @@ jQuery(function($){ | |
| 6 6 | 
             
            		prevText: '<Ant',
         | 
| 7 7 | 
             
            		nextText: 'Sig>',
         | 
| 8 8 | 
             
            		currentText: 'Hoy',
         | 
| 9 | 
            -
            		monthNames: [' | 
| 10 | 
            -
            		' | 
| 11 | 
            -
            		monthNamesShort: [' | 
| 12 | 
            -
            		' | 
| 13 | 
            -
            		dayNames: [' | 
| 14 | 
            -
            		dayNamesShort: [' | 
| 15 | 
            -
            		dayNamesMin: [' | 
| 9 | 
            +
            		monthNames: ['enero','febrero','marzo','abril','mayo','junio',
         | 
| 10 | 
            +
            		'julio','agosto','septiembre','octubre','noviembre','diciembre'],
         | 
| 11 | 
            +
            		monthNamesShort: ['ene','feb','mar','abr','may','jun',
         | 
| 12 | 
            +
            		'jul','ogo','sep','oct','nov','dic'],
         | 
| 13 | 
            +
            		dayNames: ['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],
         | 
| 14 | 
            +
            		dayNamesShort: ['dom','lun','mar','mié','juv','vie','sáb'],
         | 
| 15 | 
            +
            		dayNamesMin: ['D','L','M','X','J','V','S'],
         | 
| 16 16 | 
             
            		weekHeader: 'Sm',
         | 
| 17 17 | 
             
            		dateFormat: 'dd/mm/yy',
         | 
| 18 18 | 
             
            		firstDay: 1,
         | 
| @@ -14,7 +14,7 @@ jQuery(function($){ | |
| 14 14 | 
             
            		dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
         | 
| 15 15 | 
             
            		dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
         | 
| 16 16 | 
             
            		weekHeader: 'Vk',
         | 
| 17 | 
            -
            		dateFormat: ' | 
| 17 | 
            +
            		dateFormat: 'd.m.yy',
         | 
| 18 18 | 
             
            		firstDay: 1,
         | 
| 19 19 | 
             
            		isRTL: false,
         | 
| 20 20 | 
             
            		showMonthAfterYear: false,
         | 
| @@ -6,13 +6,13 @@ jQuery(function($){ | |
| 6 6 | 
             
            		prevText: '<Préc',
         | 
| 7 7 | 
             
            		nextText: 'Suiv>',
         | 
| 8 8 | 
             
            		currentText: 'Courant',
         | 
| 9 | 
            -
            		monthNames: [' | 
| 10 | 
            -
             | 
| 11 | 
            -
            		monthNamesShort: [' | 
| 12 | 
            -
             | 
| 13 | 
            -
            		dayNames: [' | 
| 14 | 
            -
            		dayNamesShort: [' | 
| 15 | 
            -
            		dayNamesMin: [' | 
| 9 | 
            +
            		monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
         | 
| 10 | 
            +
            			'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
         | 
| 11 | 
            +
            		monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
         | 
| 12 | 
            +
            			'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
         | 
| 13 | 
            +
            		dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
         | 
| 14 | 
            +
            		dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
         | 
| 15 | 
            +
            		dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
         | 
| 16 16 | 
             
            		weekHeader: 'Sm',
         | 
| 17 17 | 
             
            		dateFormat: 'dd.mm.yy',
         | 
| 18 18 | 
             
            		firstDay: 1,
         | 
| @@ -8,12 +8,12 @@ jQuery(function($){ | |
| 8 8 | 
             
            		prevText: 'Précédent',
         | 
| 9 9 | 
             
            		nextText: 'Suivant',
         | 
| 10 10 | 
             
            		currentText: 'Aujourd\'hui',
         | 
| 11 | 
            -
            		monthNames: [' | 
| 12 | 
            -
             | 
| 13 | 
            -
            		monthNamesShort: [' | 
| 14 | 
            -
             | 
| 15 | 
            -
            		dayNames: [' | 
| 16 | 
            -
            		dayNamesShort: [' | 
| 11 | 
            +
            		monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
         | 
| 12 | 
            +
            			'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
         | 
| 13 | 
            +
            		monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
         | 
| 14 | 
            +
            			'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
         | 
| 15 | 
            +
            		dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
         | 
| 16 | 
            +
            		dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
         | 
| 17 17 | 
             
            		dayNamesMin: ['D','L','M','M','J','V','S'],
         | 
| 18 18 | 
             
            		weekHeader: 'Sem.',
         | 
| 19 19 | 
             
            		dateFormat: 'dd/mm/yy',
         | 
| @@ -14,7 +14,7 @@ jQuery(function($){ | |
| 14 14 | 
             
            		dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'],
         | 
| 15 15 | 
             
            		dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'],
         | 
| 16 16 | 
             
            		weekHeader: 'Vika',
         | 
| 17 | 
            -
            		dateFormat: 'dd | 
| 17 | 
            +
            		dateFormat: 'dd.mm.yy',
         | 
| 18 18 | 
             
            		firstDay: 0,
         | 
| 19 19 | 
             
            		isRTL: false,
         | 
| 20 20 | 
             
            		showMonthAfterYear: false,
         | 
| @@ -13,11 +13,11 @@ jQuery(function($){ | |
| 13 13 | 
             
            		dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'],
         | 
| 14 14 | 
             
            		dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'],
         | 
| 15 15 | 
             
            		dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'],
         | 
| 16 | 
            -
            		weekHeader: ' | 
| 16 | 
            +
            		weekHeader: 'SAV',
         | 
| 17 17 | 
             
            		dateFormat: 'yy-mm-dd',
         | 
| 18 18 | 
             
            		firstDay: 1,
         | 
| 19 19 | 
             
            		isRTL: false,
         | 
| 20 | 
            -
            		showMonthAfterYear:  | 
| 20 | 
            +
            		showMonthAfterYear: true,
         | 
| 21 21 | 
             
            		yearSuffix: ''};
         | 
| 22 22 | 
             
            	$.datepicker.setDefaults($.datepicker.regional['lt']);
         | 
| 23 23 | 
             
            });
         | 
| @@ -3,8 +3,8 @@ | |
| 3 3 | 
             
            jQuery(function($){
         | 
| 4 4 | 
             
            	$.datepicker.regional['lv'] = {
         | 
| 5 5 | 
             
            		closeText: 'Aizvērt',
         | 
| 6 | 
            -
            		prevText: 'Iepr',
         | 
| 7 | 
            -
            		nextText: ' | 
| 6 | 
            +
            		prevText: 'Iepr.',
         | 
| 7 | 
            +
            		nextText: 'Nāk.',
         | 
| 8 8 | 
             
            		currentText: 'Šodien',
         | 
| 9 9 | 
             
            		monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs',
         | 
| 10 10 | 
             
            		'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'],
         | 
| @@ -13,8 +13,8 @@ jQuery(function($){ | |
| 13 13 | 
             
            		dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'],
         | 
| 14 14 | 
             
            		dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'],
         | 
| 15 15 | 
             
            		dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'],
         | 
| 16 | 
            -
            		weekHeader: ' | 
| 17 | 
            -
            		dateFormat: 'dd | 
| 16 | 
            +
            		weekHeader: 'Ned.',
         | 
| 17 | 
            +
            		dateFormat: 'dd.mm.yy',
         | 
| 18 18 | 
             
            		firstDay: 1,
         | 
| 19 19 | 
             
            		isRTL: false,
         | 
| 20 20 | 
             
            		showMonthAfterYear: false,
         | 
| @@ -1,10 +1,10 @@ | |
| 1 1 | 
             
            //= require jquery.ui.core
         | 
| 2 2 |  | 
| 3 3 | 
             
            /*!
         | 
| 4 | 
            -
             * jQuery UI Datepicker 1.10. | 
| 4 | 
            +
             * jQuery UI Datepicker 1.10.4
         | 
| 5 5 | 
             
             * http://jqueryui.com
         | 
| 6 6 | 
             
             *
         | 
| 7 | 
            -
             * Copyright  | 
| 7 | 
            +
             * Copyright 2014 jQuery Foundation and other contributors
         | 
| 8 8 | 
             
             * Released under the MIT license.
         | 
| 9 9 | 
             
             * http://jquery.org/license
         | 
| 10 10 | 
             
             *
         | 
| @@ -15,7 +15,7 @@ | |
| 15 15 | 
             
             */
         | 
| 16 16 | 
             
            (function( $, undefined ) {
         | 
| 17 17 |  | 
| 18 | 
            -
            $.extend($.ui, { datepicker: { version: "1.10. | 
| 18 | 
            +
            $.extend($.ui, { datepicker: { version: "1.10.4" } });
         | 
| 19 19 |  | 
| 20 20 | 
             
            var PROP_NAME = "datepicker",
         | 
| 21 21 | 
             
            	instActive;
         | 
| @@ -2035,6 +2035,6 @@ $.fn.datepicker = function(options){ | |
| 2035 2035 | 
             
            $.datepicker = new Datepicker(); // singleton instance
         | 
| 2036 2036 | 
             
            $.datepicker.initialized = false;
         | 
| 2037 2037 | 
             
            $.datepicker.uuid = new Date().getTime();
         | 
| 2038 | 
            -
            $.datepicker.version = "1.10. | 
| 2038 | 
            +
            $.datepicker.version = "1.10.4";
         | 
| 2039 2039 |  | 
| 2040 2040 | 
             
            })(jQuery);
         |