summaryrefslogtreecommitdiffstats
path: root/theme/javascript/toolbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript/toolbar.js')
-rw-r--r--theme/javascript/toolbar.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/javascript/toolbar.js b/theme/javascript/toolbar.js
index d65159b..de30493 100644
--- a/theme/javascript/toolbar.js
+++ b/theme/javascript/toolbar.js
@@ -156,6 +156,8 @@ function updateButton(opts) {
$result = $btn;
}
+ $result.addClass('js-toolbar-action');
+
if (_.isNumber(opts.index) && opts.index >= 0) {
insertAt($toolbar, '.btn, .dropdown, h1', opts.index, $result);
} else {
@@ -165,6 +167,7 @@ function updateButton(opts) {
// Update all buttons
function updateAllButtons() {
+ $('.js-toolbar-action').remove();
_.each(buttons, updateButton);
}