Fix timeslider export dropdown

This commit is contained in:
Marcel Klehr 2014-03-30 12:30:18 +02:00
parent 54bf17bfea
commit 867e40533a
2 changed files with 5 additions and 3 deletions

View File

@ -206,7 +206,7 @@ var padeditbar = (function()
if(module.css('display') != "none")
{
$("#" + module[i] + "link").removeClass("selected");
$("#" + self.dropdowns[i] + "link").removeClass("selected");
module.slideUp("fast", cb);
returned = true;
}
@ -297,7 +297,7 @@ var padeditbar = (function()
ace.ace_doUndoRedo(cmd);
});
toolbar.registerAceCommand("redo", function (cmd, ace) {
toolbar.registerAceCommand("redo", function (cmd) {
ace.ace_doUndoRedo(cmd);
});

View File

@ -80,7 +80,7 @@
<div class="editbarright toolbar" id="editbar">
<% e.begin_block("timesliderEditbarRight"); %>
<ul>
<li onClick="window.padeditbar.toolbarClick('import_export');return false;">
<li onClick="window.padeditbar.triggerCommand('import_export');return false;">
<a id="exportlink" data-l10n-id="timeslider.toolbar.exportlink.title">
<div class="buttonicon buttonicon-import_export"></div>
</a>
@ -241,6 +241,8 @@
/* TODO: These globals shouldn't exist. */
padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
padeditbar.init()
});
})();
</script>