Sha256: 2e7b80c992a741a8739e045f7332853928426ac3111c2f8a937d39215af7204c
Contents?: true
Size: 1.6 KB
Versions: 6
Compression:
Stored size: 1.6 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI" basepack/loading_spinner.js; FI" pathname; TI"]/home/lukas/projects/basepack/app/assets/javascripts/basepack/loading_spinner.coffee.erb; FI"content_type; TI"application/javascript; TI" mtime; Tl+ÓbâRI"length; TiƒI"digest; TI"%f00f5534a7eb6ec0b277c15b25332073; FI"source; TI"ƒ(function() { this.PageSpinner = { spin: function(ms) { if (ms == null) { ms = 250; } this.spinner = setTimeout(((function(_this) { return function() { return _this.add_spinner(); }; })(this)), ms); return $(document).on('page:change', (function(_this) { return function() { return _this.remove_spinner(); }; })(this)); }, spinner_html: '<div class="modal hide fade" id="page-spinner"> <div class="modal-head card-title"> Loading, please wait</div> <div class="modal-body card-body"> <i class="icon-spinner icon-spin icon-2x"></i>  Loading, please wait </div> </div>', spinner: null, add_spinner: function() { $('body').append(this.spinner_html); return $('body div#page-spinner').modal(); }, remove_spinner: function() { clearTimeout(this.spinner); $('div#page-spinner').modal('hide'); return $('div#page-spinner').on('hidden', function() { return $(this).remove(); }); } }; $(document).on('page:fetch', function() { return PageSpinner.spin(); }); }).call(this); ; TI"required_assets_digest; TI"%a3ddaebeb1bf2c902def68335d22c27a; FI" _version; TI"%361c512b9086418778df946c0d278f91; F
Version data entries
6 entries across 3 versions & 1 rubygems