diff --git a/plugins/kolab_folders/kolab_folders.js b/plugins/kolab_folders/kolab_folders.js index b9d92258..2dac049b 100644 --- a/plugins/kolab_folders/kolab_folders.js +++ b/plugins/kolab_folders/kolab_folders.js @@ -1,125 +1,125 @@ /** * Client script for the Kolab folder management/listing extension * * @author Aleksander Machniak * * @licstart The following is the entire license notice for the * JavaScript code in this file. * * Copyright (C) 2011, Kolab Systems AG * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * * @licend The above is the entire license notice * for the JavaScript code in this file. */ window.rcmail && rcmail.env.action == 'folders' && rcmail.addEventListener('init', function() { var filter = $(rcmail.gui_objects.foldersfilter), optgroup = $('').attr('label', rcmail.gettext('kolab_folders.folderctype')); // remove disabled namespaces filter.children('option').each(function(i, opt) { $.each(rcmail.env.skip_roots || [], function() { if (opt.value == this) { $(opt).remove(); } }); }); // add type options to the filter $.each(rcmail.env.foldertypes, function() { optgroup.append($(''); // append available subtypes for the given folder type $.each(subtypes, function(val, label) { $('