running initMost() can be turned off, when updating a div.ajax

This commit is contained in:
Uwe Steinmann 2024-10-31 18:11:22 +01:00
parent 7bf9768359
commit 507c85821d
2 changed files with 12 additions and 2 deletions

View File

@ -613,6 +613,7 @@ $(document).ready( function() {
var query = element.data('query');
var afterload = $(this).data('afterload');
var updatemsg = element.data('update-msg');
var runinit = true;
if(view && action) {
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
if(query) {
@ -624,6 +625,8 @@ $(document).ready( function() {
for(var key in param1) {
if(key == 'callback')
callback = param1[key];
else if(key == 'noinit')
runinit = !param1[key];
else {
if($.isArray(param1[key])) {
if(param1[key].length > 0)
@ -650,7 +653,9 @@ $(document).ready( function() {
func();
}
}
initMost();
if(runinit) {
initMost();
}
SeedDMSAjax.run(view, action);
});
}); /* }}} */

View File

@ -661,6 +661,7 @@ $(document).ready( function() {
var query = element.data('query');
var afterload = $(this).data('afterload');
var updatemsg = element.data('update-msg');
var runinit = true;
if(view && action) {
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
if(query) {
@ -672,6 +673,8 @@ $(document).ready( function() {
for(var key in param1) {
if(key == 'callback')
callback = param1[key];
else if(key == 'noinit')
runinit = !param1[key];
else {
if($.isArray(param1[key])) {
if(param1[key].length > 0)
@ -698,7 +701,9 @@ $(document).ready( function() {
func();
}
}
initMost();
if(runinit) {
initMost();
}
SeedDMSAjax.run(view, action);
});
}); /* }}} */