mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
running initMost() can be turned off, when updating a div.ajax
This commit is contained in:
parent
7bf9768359
commit
507c85821d
|
@ -613,6 +613,7 @@ $(document).ready( function() {
|
||||||
var query = element.data('query');
|
var query = element.data('query');
|
||||||
var afterload = $(this).data('afterload');
|
var afterload = $(this).data('afterload');
|
||||||
var updatemsg = element.data('update-msg');
|
var updatemsg = element.data('update-msg');
|
||||||
|
var runinit = true;
|
||||||
if(view && action) {
|
if(view && action) {
|
||||||
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
|
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
|
||||||
if(query) {
|
if(query) {
|
||||||
|
@ -624,6 +625,8 @@ $(document).ready( function() {
|
||||||
for(var key in param1) {
|
for(var key in param1) {
|
||||||
if(key == 'callback')
|
if(key == 'callback')
|
||||||
callback = param1[key];
|
callback = param1[key];
|
||||||
|
else if(key == 'noinit')
|
||||||
|
runinit = !param1[key];
|
||||||
else {
|
else {
|
||||||
if($.isArray(param1[key])) {
|
if($.isArray(param1[key])) {
|
||||||
if(param1[key].length > 0)
|
if(param1[key].length > 0)
|
||||||
|
@ -650,7 +653,9 @@ $(document).ready( function() {
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(runinit) {
|
||||||
initMost();
|
initMost();
|
||||||
|
}
|
||||||
SeedDMSAjax.run(view, action);
|
SeedDMSAjax.run(view, action);
|
||||||
});
|
});
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
|
@ -661,6 +661,7 @@ $(document).ready( function() {
|
||||||
var query = element.data('query');
|
var query = element.data('query');
|
||||||
var afterload = $(this).data('afterload');
|
var afterload = $(this).data('afterload');
|
||||||
var updatemsg = element.data('update-msg');
|
var updatemsg = element.data('update-msg');
|
||||||
|
var runinit = true;
|
||||||
if(view && action) {
|
if(view && action) {
|
||||||
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
|
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
|
||||||
if(query) {
|
if(query) {
|
||||||
|
@ -672,6 +673,8 @@ $(document).ready( function() {
|
||||||
for(var key in param1) {
|
for(var key in param1) {
|
||||||
if(key == 'callback')
|
if(key == 'callback')
|
||||||
callback = param1[key];
|
callback = param1[key];
|
||||||
|
else if(key == 'noinit')
|
||||||
|
runinit = !param1[key];
|
||||||
else {
|
else {
|
||||||
if($.isArray(param1[key])) {
|
if($.isArray(param1[key])) {
|
||||||
if(param1[key].length > 0)
|
if(param1[key].length > 0)
|
||||||
|
@ -698,7 +701,9 @@ $(document).ready( function() {
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(runinit) {
|
||||||
initMost();
|
initMost();
|
||||||
|
}
|
||||||
SeedDMSAjax.run(view, action);
|
SeedDMSAjax.run(view, action);
|
||||||
});
|
});
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user