email.addEventListener("complete", function(_event) { if(APP.Device.isTablet) { APP.removeChild(); } else { APP.removeAllChildren(); } });
$.NavigationBar.showBack(function(_event) { APP.removeChild({ animation: APP.AnimationStyle.NavRight }); });
var scanForAuth = function() { var targetUrl = $.content.url; Ti.API.info('[qk]:targetUrl\ = ' + targetUrl); if(targetUrl.substr(0, 19) == "http://firstsnow.co") { var token = targetUrl.replace(Alloy.CFG.redirect_uri + "#access_token=", ""); Alloy.Globals.slideOn = true; SESS.save(token); APP.removeChild(); Ti.App.fireEvent("getInfo"); PUTOUT.loadMenu(); } else { Ti.API.info('NO TOKEN'); if($.content.url.search(loginURL.substr(0, 34)) != -1) { $.instructionText.text = "Scroll down to login."; $.content.evalJS('window.scrollTo(0,100);'); } else { $.instructionText.text = "Click here to login."; } } };
win.addEventListener('close',function(){ win.removeEventListener('close',arguments.callee); that.winStack = _.without(that.winStack, win); if (_screen.isAdded) { APP.removeChild(); win.remove(_screen); } win = null; });
email.addEventListener("complete", function(_event) { if(APP.Device.isTablet) { APP.removeChild({ animation: APP.AnimationStyle.SlideLeft });; } else { APP.removeAllChildren({ animation: APP.AnimationStyle.SlideLeft }); } });
request.onload = function(e) { var json = JSON.parse(this.responseText); if(json.status == "OK") { //refresh files //getFiles(parent_id); //targetRow = 0; APP.closeLoading(); APP.MainWindow.fireEvent("file_refresh"); APP.removeChild(); } };
$.NavigationBar.showBack(function(_event) { APP.removeChild({ animation: APP.AnimationStyle.SlideLeft });; });
$.back.addEventListener("click", function(_event) { APP.removeChild(); });
$.NavigationBar.back.addEventListener("click", function(_event) { APP.log("debug", "web @close"); APP.removeChild(); });
callback: function (_event) { APP.removeChild(true); $.textArea.blur(); }
callback: function(_event) { APP.removeChild(); APP.SlideMenuEngaged = true; }
callback: function() { APP.removeChild(); }
}) : $.NavigationBar.showBack(function() { APP.removeChild(true); });
$.NavigationBar.back.addEventListener("click", function(_event) { APP.log("debug", "settings_legal @close"); APP.removeChild("settings"); });
$.NavigationBar.showBack(function(_event) { APP.removeChild({ animation: APP.AnimationStyle.SlideLeft }); APP.SlideMenuEngaged = true; });
$.NavigationBar.showBack(function(_event) { APP.removeChild(); APP.SlideMenuEngaged = true; });
success: function() { APP.Loading.hide(); APP.removeChild(); },
true === CONFIG.isChild && $.NavigationBar.showBack(function() { APP.removeChild(); });
$.go.addEventListener("click", function(e) { Ti.App.Properties.setString("warningRead", "true"); APP.removeChild(); });
$.NavigationBar.showBack(function(_event) { APP.removeChild(); }, APP.Settings.navBarStyle.backBtnStyle);
var closeAudio = function() { audioPlayer.stop(); APP.removeChild(); };
$.NavigationBar.showBack(function(_event) { APP.removeChild(); });
setTimeout(function() { APP.closeLoading(); APP.removeChild(); },100);
true === CONFIG.isChild ? $.NavigationBar.showBack(function() { APP.removeChild(); }) : APP.Settings.useSlideMenu ? $.NavigationBar.showMenu(function() {
callback: function(_event) { APP.removeChild(true); }