{I" class:ETI"ProcessedAsset;FI"logical_path;TI"&netzke/testing/helpers/actions.js;FI" pathname;TI"l/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+RøUI" length;TiˆI" digest;TI"%716ced2d0371fc9e0b4557a04caeda2e;FI" source;TI"ˆ(function() { Ext.Ajax.on('beforerequest', function() { Netzke.ajaxCount = window.ajaxCount || 0; return Netzke.ajaxCount += 1; }); Ext.Ajax.on('requestcomplete', function() { return Netzke.ajaxCount -= 1; }); Ext.apply(window, { wait: function() { var callback, delay, i, id; if (typeof arguments[0] === 'function') { callback = arguments[0]; i = 0; return id = setInterval(function() { i += 1; if (i >= 100) { clearInterval(id); callback.call(); } if (Netzke.ajaxCount === 0) { return i = 100; } }, 200); } else { delay = arguments[0]; callback = arguments[1]; return setInterval(function() { return callback.call(); }, delay); } }, click: function(cmp) { var el; if (Ext.isString(cmp)) { throw "Could not locate " + cmp; } else if (cmp.isXType) { if (cmp.isXType('tool')) { el = cmp.toolEl; } else { el = cmp.getEl(); } return el.dom.click(); } else if (Ext.isElement(cmp)) { return cmp.click(); } }, closeWindow: function() { return Ext.ComponentQuery.query("window[hidden=false]")[0].close(); }, select: function(value, params, callback) { var combo, rec; if (params == null) { params = params; } combo = params["in"]; if (combo.isExpanded) { combo.setValue(combo.findRecordByDisplay(value)); return combo.collapse(); } else { combo.onTriggerClick(); if (callback) { return wait(function() { var rec; rec = combo.findRecordByDisplay(value); combo.select(rec); combo.fireEvent('select', combo, rec); combo.collapse(); return callback.call(); }); } else { rec = combo.findRecordByDisplay(value); combo.select(rec); combo.fireEvent('select', combo, rec); return combo.collapse(); } } } }); }).call(this); ;TI"dependency_digest;TI"%9a527faab6e1434bc18a46d2edf3f946;FI"required_paths;T[I"l/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;FI"dependency_paths;T[{I" path;TI"l/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;F@I"2015-03-18T11:00:18+07:00;T@I"%59cd0303e80beb41a674633578e0e292;FI" _version;TI"%4bf7b15359fe8e0974f7f263e26e27f4;F