loleaflet/dist/toolbar/toolbar.js | 41 -------------------------------------- 1 file changed, 41 deletions(-)
New commits: commit e73841b66c8b4121c7b632a7453aadc5d3053a6c Author: Andras Timar <andras.ti...@collabora.com> Date: Fri Dec 9 16:01:40 2016 +0100 loleaflet: remove unused functions: toggleButton, disableButton diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js index a34473b..ffd5639 100644 --- a/loleaflet/dist/toolbar/toolbar.js +++ b/loleaflet/dist/toolbar/toolbar.js @@ -532,47 +532,6 @@ var userJoinedPopupMessage = '<div>' + _('%user has joined') + '</div>'; var userLeftPopupMessage = '<div>' + _('%user has left') + '</div>'; var userPopupTimeout = null; -function toggleButton(toolbar, state, command) -{ - var checked; - command = command.replace('.uno:', '').toLowerCase(); - var item = toolbar.get(command); - if (!item) { - return; - } - - if (state) { - checked = item.disabled ? toolbar.enable(command) : undefined; - - if (state == 'true') { - checked = !item.checked ? toolbar.check(command) : undefined; - } - else { - checked = item.checked ? toolbar.uncheck(command) : undefined; - } - } - else { - checked = !item.disabled ? toolbar.disable(command) : undefined; - } -} - -function disableButton(toolbar, state, command) -{ - var disabled; - command = command.replace('.uno:', '').toLowerCase(); - var item = toolbar.get(command); - if (!item) { - return; - } - - if (state) { - disabled = item.disabled ? toolbar.enable(command) : undefined; - } - else { - disabled = !item.disabled ? toolbar.disable(command) : undefined; - } -} - function toLocalePattern (pattern, regex, text, sub1, sub2) { var matches = new RegExp(regex, 'g').exec(text); if (matches) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits