PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
popup
$.popup('idletimeout', 'popupconfirm', { open : function() { var template = ''; this._init(template); }, init : function(element) { element.append(this.options.template); var clock_el = $('.dynamic_clock', element); this.wait_time = 300000; var that = this; this.idleInterval = setInterval(function() { that.wait_time -= 1000; var rs = that.convertMiliseconToString(that.wait_time); clock_el.html(rs); if(that.wait_time === 0) { that.idleTimeooutAction(); } }, 1000); PM.pauseIdleTimer(); var rs = this.convertMiliseconToString(this.wait_time); clock_el.html(rs); }, idleTimeooutAction : function() { window.location = window.logoutURL; }, onOK : function() { clearInterval(this.idleInterval); PM.registercheckIdleEvent(); }, convertMiliseconToString : function(m) { var rs = ''; var minute = 0; var second = 0; second = m / 1000; minute = Math.floor(second / 60); second = second % 60; if(minute < 10) { rs += '0' + minute; } else rs += minute; rs += window.t('LBL_MINUTE_ICON') + ' : '; if(second < 10) { rs += '0' + second; } else rs += second; rs += window.t('LBL_SECOND_ICON'); return rs; }, getButtons : function() { var that = this; return [ { name: t('LBL_DISMISS'), class:'btn-primary', closeAfterClick:true, onpress: function() { if(that.onOK) that.onOK(); } }]; } }, { template : '<div class="row-fluid"><div class="block well"><div class="control-group">' + window.t('LBL_ADMIN_IDLE_TIMEOUT_MESSAGE') + '<br/>' + '<span class="dynamic_clock"></span>' + '</div></div></div>' });
[+]
..
[-] profile.js
[edit]
[-] pagelist.js
[edit]
[-] order.js
[edit]
[-] customer_group.js
[edit]
[-] module_list.js
[edit]
[-] backgroundeditor.js
[edit]
[-] product.js
[edit]
[-] visualcsseditor.js
[edit]
[-] shipping_rule.js
[edit]
[-] profile_change_password.js
[edit]
[-] review.js
[edit]
[-] contributor_invite.js
[edit]
[-] dbfilter.js
[edit]
[-] tax_class.js
[edit]
[-] special_module_style_editor.js
[edit]
[-] idletimeout.js
[edit]
[-] address.js
[edit]
[-] contributor.js
[edit]
[-] login.js
[edit]
[-] skin.js
[edit]
[-] mail.js
[edit]
[-] discount.js
[edit]
[-] customer.js
[edit]
[-] productgrid.js
[edit]
[-] socialsharebuttonconfig.js
[edit]
[-] news.js
[edit]
[-] color.js
[edit]
[-] palette.js
[edit]
[-] newsgrid.js
[edit]
[-] product_option_combination_grid.js
[edit]
[-] page.js
[edit]
[-] product_option.js
[edit]
[-] tax_rate.js
[edit]
[-] coupons.js
[edit]
[-] zone.js
[edit]
[-] product_bulk_price.js
[edit]
[-] option_set.js
[edit]
[-] product_option_combination.js
[edit]