Merge pull request #228 from niphlod/enhancement/trapped_links

pass the correct element when trapping links
This commit is contained in:
mdipierro
2013-09-24 15:23:07 -07:00
3 changed files with 3 additions and 3 deletions
+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();
}); });
}); });