o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357819139.2850251: @value"p {I" class:EFI"BundledAsset;FI"logical_path;FI"'iugu-ux/components/iugu-ux-main.js;TI" pathname;FI"{/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.0/vendor/assets/javascripts/iugu-ux/components/iugu-ux-main.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-06T09:09:15-02:00;FI" length;Fi\ I" digest;F"%9c5473eb449669fdf578a91955f3161cI" source;FI"\ (function() { this.configure_ui_action = function(button, callback) { if (callback == null) { callback = null; } button = $(button); if (window.IS_MOBILE) { button.on('touchstart', function(evt) { return $(this).addClass('active'); }); return button.on('touchend', function(evt) { $(this).removeClass('active'); if (callback) { return callback(evt); } }); } else { button.on('mousedown', function(evt) { return $(this).addClass('active'); }); return button.on('mouseup', function(evt) { $(this).removeClass('active'); if (callback) { return callback(evt); } }); } }; this.configure_ui_button = function(button) { debug("Configuring UI Button"); return configure_ui_action(button, function() { return debug("CLICKED OK"); }); }; $(function() { $(".button").each(function(el) { return configure_ui_button(this); }); $("#slider").slider({ orientation: "vertical", range: true, min: 0, max: 500, values: [75, 300] }); return $("[data-selector]").each(function(evt) { var component, elph, newdiv, selector_label, selector_type; console.log($(this).data('selector')); elph = $(this); selector_type = elph.data('selector'); selector_label = elph.data('label'); console.log(selector_label); if (selector_type === 'date') { console.log("A date selector has been found!"); component = $(this).mobiscroll().date({ label: selector_label, theme: 'ui-selector date', display: 'inline', mode: 'scroller', inputClass: "ui-selector-input-hidden" }); console.log("OK"); newdiv = $(document.createElement('div')); newdiv.html('' + selector_label + ''); newdiv.addClass("ui-selector-floating-title"); return newdiv.insertAfter(elph); } else if (selector_type === 'select') { console.log("A selector has been found!"); return $(this).mobiscroll().select({ label: selector_label, theme: "ui-selector", display: "inline", mode: "scroller", inputClass: "ui-selector-input-hidden" }); } }); }); }).call(this); ;FI"required_assets_digest;F"%11916f85655842444fbb5656875df23cI" _version;F"%6776f581a4329e299531e1d52aa59832