Sha256: cb8c59678db620da8da9edc6a82a6e35d1e30dd75b63d1138b2fd2e6da4654fd
Contents?: true
Size: 652 Bytes
Versions: 40
Compression:
Stored size: 652 Bytes
Contents
(function($){ $.fn.disable = function(){ return this.each(function(){ var $this = $(this); $this.prepend('<div class="disabled_shield"></div>'); var shield = $this.find('.disabled_shield'); shield.css({'position' : 'absolute', 'z-index' : '200'}); shield.width($this.width()); shield.height($this.height()); $this.data("disabledShield", shield); $this.animate({opacity : 0.5}, 200); $this.find('input:focus').blur(); }); }; $.fn.enable = function(){ var $this = $(this); $this.find('.disabled_shield').remove(); $this.animate({opacity: 100}, 200); }; })(jQuery);
Version data entries
40 entries across 40 versions & 2 rubygems