mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
check if data-query is set in div.ajax elements, pass it to the url
This commit is contained in:
parent
ca3970c9c3
commit
01449f66e3
|
@ -406,9 +406,13 @@ $(document).ready( function() {
|
|||
var href = element.data('href');
|
||||
var view = element.data('view');
|
||||
var action = element.data('action');
|
||||
if(view && action)
|
||||
var query = element.data('query');
|
||||
if(view && action) {
|
||||
url = "out."+view+".php?action="+action;
|
||||
else
|
||||
if(query) {
|
||||
url += "&"+query;
|
||||
}
|
||||
} else
|
||||
url = href;
|
||||
// console.log('Calling '+url);
|
||||
$.get(url, function(data) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user