From cb6ae0516c6d2b2f713db11b30b6e91b19e97900 Mon Sep 17 00:00:00 2001 From: niphlod Date: Wed, 25 Sep 2013 00:09:19 +0200 Subject: [PATCH] pass the correct element when trapping links --- applications/admin/static/js/web2py.js | 2 +- applications/examples/static/js/web2py.js | 2 +- applications/welcome/static/js/web2py.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/admin/static/js/web2py.js b/applications/admin/static/js/web2py.js index 43d4f691..67cf07f5 100644 --- a/applications/admin/static/js/web2py.js +++ b/applications/admin/static/js/web2py.js @@ -269,7 +269,7 @@ var link = $(this); link.click(function (e) { web2py.hide_flash(); - web2py.ajax_page('get', link.attr('href'), [], target); + web2py.ajax_page('get', link.attr('href'), [], target, $(this)); e.preventDefault(); }); }); diff --git a/applications/examples/static/js/web2py.js b/applications/examples/static/js/web2py.js index 43d4f691..67cf07f5 100644 --- a/applications/examples/static/js/web2py.js +++ b/applications/examples/static/js/web2py.js @@ -269,7 +269,7 @@ var link = $(this); link.click(function (e) { web2py.hide_flash(); - web2py.ajax_page('get', link.attr('href'), [], target); + web2py.ajax_page('get', link.attr('href'), [], target, $(this)); e.preventDefault(); }); }); diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index 43d4f691..67cf07f5 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -269,7 +269,7 @@ var link = $(this); link.click(function (e) { web2py.hide_flash(); - web2py.ajax_page('get', link.attr('href'), [], target); + web2py.ajax_page('get', link.attr('href'), [], target, $(this)); e.preventDefault(); }); });