Trigger "start" before "page.change"

This commit is contained in:
Samy Pessé
2015-11-02 16:57:08 +01:00
parent 3388be9db6
commit 2814fea67e
4 changed files with 26 additions and 8 deletions
+3
View File
@@ -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);
}