mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check for data-base in div-ajax
This commit is contained in:
parent
01cd47401c
commit
d2da3004bb
|
@ -362,11 +362,14 @@ $(document).ready( function() {
|
|||
var element = $(this);
|
||||
var url = '';
|
||||
var href = element.data('href');
|
||||
var base = element.data('base');
|
||||
if(typeof base == 'undefined')
|
||||
base = '';
|
||||
var view = element.data('view');
|
||||
var action = element.data('action');
|
||||
var query = element.data('query');
|
||||
if(view && action) {
|
||||
url = seeddms_webroot+"out/out."+view+".php?action="+action;
|
||||
url = seeddms_webroot+base+"out/out."+view+".php?action="+action;
|
||||
if(query) {
|
||||
url += "&"+query;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user