Sha256: 840b6a57a39e5ac542bf920d7a9257959407e5023cb7a2c2559ed861ead99fba
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
// ### Allows a view to retrieve a new view via a `<select>`. (function($) { $.extend($.fn, { filterable: function() { return this.each(function() { var $app_wrapper = $('#app_wrapper'); $(this) .off('click') .on('click', function() { $app_wrapper.mask({ 'freeze': true }); }) .off('change') .on('change', function(e) { $app_wrapper.mask({ 'unmask': true }); Application.showView( $.deserialize(e.target.value.substring(1)) ); }) .off('blur') .on('blur', function() { $app_wrapper.mask({ 'unmask': true }); }); $.preload(['@2x/filterlist_press@2x.png']); }); } }); })(Zepto); // // ### Allows a view to retrieve a new view via a `<select>`. // (function($){ // $.fn.filterable = function() { // this // .off('change') // .on('change', function(e) { // // Prevents history from being created // Application.showView( $.deserialize(e.target.value.substring(1)) ); // }); // }; // })(Zepto);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sports_db-0.2.3 | app/assets/javascripts/plugins/zepto.filterable.js |