mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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 href = element.data('href');
|
||||||
var view = element.data('view');
|
var view = element.data('view');
|
||||||
var action = element.data('action');
|
var action = element.data('action');
|
||||||
if(view && action)
|
var query = element.data('query');
|
||||||
|
if(view && action) {
|
||||||
url = "out."+view+".php?action="+action;
|
url = "out."+view+".php?action="+action;
|
||||||
else
|
if(query) {
|
||||||
|
url += "&"+query;
|
||||||
|
}
|
||||||
|
} else
|
||||||
url = href;
|
url = href;
|
||||||
// console.log('Calling '+url);
|
// console.log('Calling '+url);
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user