From 3c244ff27f015df6cfa918c9ba3e192f4d5b62ff Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 4 Apr 2013 14:04:31 +0000 Subject: minibar/syntax editor integration improvements Work in progress on preserving the start category and selected target languages when switching between the minibar and the syntax editor. --- src/www/js/support.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/www/js') diff --git a/src/www/js/support.js b/src/www/js/support.js index e8b7e7878..27207ac2e 100644 --- a/src/www/js/support.js +++ b/src/www/js/support.js @@ -259,6 +259,25 @@ function toggleHidden(el) { el.classList.add("hidden") } +// Update the selected options in a menu that allow multiple selections +function updateMultiMenu(menu,selection) { + var set=toSet(selection) + var os=menu.options + for(var i=0;i