Toolbar: Fix timeslider button

Wouldn't play nice with url params in document.location
fixes #2124
This commit is contained in:
Marcel Klehr 2014-03-31 20:50:01 +02:00
parent 874181ce3b
commit 6b5e3ea3a5

View file

@ -285,7 +285,7 @@ var padeditbar = (function()
}); });
toolbar.registerCommand("showTimeSlider", function () { toolbar.registerCommand("showTimeSlider", function () {
document.location = document.location + "/timeslider"; document.location = document.location.pathname+ '/timeslider';
}); });
toolbar.registerAceCommand("bold", aceAttributeCommand); toolbar.registerAceCommand("bold", aceAttributeCommand);