aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/ajax.js
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-03-31 00:59:49 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:10:17 +0200
commitd3e7744dd6968b941fb3216ee2a989ed6a0c2ba1 (patch)
treea9f7bb1f3233bd76c15141f338ff896c3ded3dab /phpBB/adm/style/ajax.js
parent9b971c9fb17f284cda413eacc6665f5cdf837cbd (diff)
downloadforums-d3e7744dd6968b941fb3216ee2a989ed6a0c2ba1.tar
forums-d3e7744dd6968b941fb3216ee2a989ed6a0c2ba1.tar.gz
forums-d3e7744dd6968b941fb3216ee2a989ed6a0c2ba1.tar.bz2
forums-d3e7744dd6968b941fb3216ee2a989ed6a0c2ba1.tar.xz
forums-d3e7744dd6968b941fb3216ee2a989ed6a0c2ba1.zip
[feature/ajax] Remove not working module enable/disable ajax code
PHPBB3-10270
Diffstat (limited to 'phpBB/adm/style/ajax.js')
-rw-r--r--phpBB/adm/style/ajax.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index 0c00efee1b..fd2f7a2122 100644
--- a/phpBB/adm/style/ajax.js
+++ b/phpBB/adm/style/ajax.js
@@ -89,7 +89,9 @@ phpbb.add_ajax_callback('forum_up', function() {
phpbb.add_ajax_callback('activate_deactivate', function(res) {
var el = $(this),
new_href = el.attr('href');
+
el.text(res.text);
+
if (new_href.indexOf('deactivate') !== -1)
{
new_href = new_href.replace('deactivate', 'activate')
@@ -98,6 +100,7 @@ phpbb.add_ajax_callback('activate_deactivate', function(res) {
{
new_href = new_href.replace('activate', 'deactivate')
}
+
el.attr('href', new_href);
});