TheDJ has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/124503

Change subject: Repair removeFromToolbar() to handle image buttons
......................................................................

Repair removeFromToolbar() to handle image buttons

Bug: 29440
Change-Id: Ic30af1a1d5842a8f330344eb4a10ecbdc2606fc5
---
M modules/jquery.wikiEditor.toolbar.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor 
refs/changes/03/124503/1

diff --git a/modules/jquery.wikiEditor.toolbar.js 
b/modules/jquery.wikiEditor.toolbar.js
index 08529ef..b61a77a 100644
--- a/modules/jquery.wikiEditor.toolbar.js
+++ b/modules/jquery.wikiEditor.toolbar.js
@@ -158,7 +158,7 @@
                                        // Save for later checking if empty
                                        group = target;
                                        // Tool
-                                       target += ' a[rel="' + data.tool + 
'"].tool';
+                                       target = group + ' a[rel="' + data.tool 
+ '"].tool, ' + group + ' img[rel="' + data.tool + '"].tool';
                                }
                        } else if ( typeof data.page === 'string' ) {
                                // Booklet page

-- 
To view, visit https://gerrit.wikimedia.org/r/124503
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic30af1a1d5842a8f330344eb4a10ecbdc2606fc5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: TheDJ <hartman.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to