Merge pull request #228 from niphlod/enhancement/trapped_links
pass the correct element when trapping links
This commit is contained in:
@@ -269,7 +269,7 @@
|
|||||||
var link = $(this);
|
var link = $(this);
|
||||||
link.click(function (e) {
|
link.click(function (e) {
|
||||||
web2py.hide_flash();
|
web2py.hide_flash();
|
||||||
web2py.ajax_page('get', link.attr('href'), [], target);
|
web2py.ajax_page('get', link.attr('href'), [], target, $(this));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
var link = $(this);
|
var link = $(this);
|
||||||
link.click(function (e) {
|
link.click(function (e) {
|
||||||
web2py.hide_flash();
|
web2py.hide_flash();
|
||||||
web2py.ajax_page('get', link.attr('href'), [], target);
|
web2py.ajax_page('get', link.attr('href'), [], target, $(this));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
var link = $(this);
|
var link = $(this);
|
||||||
link.click(function (e) {
|
link.click(function (e) {
|
||||||
web2py.hide_flash();
|
web2py.hide_flash();
|
||||||
web2py.ajax_page('get', link.attr('href'), [], target);
|
web2py.ajax_page('get', link.attr('href'), [], target, $(this));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user