support ticket: reload if older than 20 sec.
This commit is contained in:
parent
934cb933d1
commit
00403e3dcc
@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
$.extend(cur_frm.cscript, {
|
$.extend(cur_frm.cscript, {
|
||||||
onload: function(doc, dt, dn) {
|
onload: function(doc, dt, dn) {
|
||||||
//
|
cur_frm.last_reload = new Date();
|
||||||
// help area
|
|
||||||
//
|
|
||||||
if(in_list(user_roles,'System Manager')) {
|
if(in_list(user_roles,'System Manager')) {
|
||||||
cur_frm.page_layout.footer.help_area.innerHTML = '<hr>\
|
cur_frm.page_layout.footer.help_area.innerHTML = '<hr>\
|
||||||
<p><a href="#Form/Email Settings/Email Settings">Email Settings</a><br>\
|
<p><a href="#Form/Email Settings/Email Settings">Email Settings</a><br>\
|
||||||
@ -29,6 +27,11 @@ $.extend(cur_frm.cscript, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(doc) {
|
refresh: function(doc) {
|
||||||
|
if(new Date() - cur_frm.last_reload > 20000) {
|
||||||
|
cur_frm.last_reload = new Date();
|
||||||
|
cur_frm.reload_doc();
|
||||||
|
return;
|
||||||
|
}
|
||||||
erpnext.hide_naming_series();
|
erpnext.hide_naming_series();
|
||||||
cur_frm.cscript.make_listing(doc);
|
cur_frm.cscript.make_listing(doc);
|
||||||
if(!doc.__islocal) {
|
if(!doc.__islocal) {
|
||||||
|
Loading…
Reference in New Issue
Block a user