Merge pull request #228 from niphlod/enhancement/trapped_links

pass the correct element when trapping links
This commit is contained in:
mdipierro committed 2013-09-24 15:23:07 -07:00
commit 528dd912d8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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();
}); });
}); });
+1 -1
View File
@@ -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();
}); });
}); });
+1 -1
View File
@@ -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();
}); });
}); });