From 9a9a364cff91ceff848135a0ceb2390db299eb04 Mon Sep 17 00:00:00 2001
From: Anika Henke <anika@selfthinker.org>
Date: Thu, 21 Apr 2016 12:36:30 +0100
Subject: [PATCH] fixed button text when enabling/disabling extension via ajax
 (probably introduced in #1231)

---
 lib/plugins/extension/script.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/plugins/extension/script.js b/lib/plugins/extension/script.js
index 0c43de6ae..2333ebbd5 100644
--- a/lib/plugins/extension/script.js
+++ b/lib/plugins/extension/script.js
@@ -72,7 +72,7 @@ jQuery(function(){
                     .removeAttr('disabled')
                     .removeClass('disable')
                     .removeClass('enable')
-                    .val(data.label)
+                    .text(data.label)
                     .addClass(data.reverse)
                 .parents('li')
                     .removeClass('disabled')
-- 
GitLab