mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +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 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);
|
||||
});
|
||||
}); /* }}} */
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}); /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user