/** * This file is part of Zwii. * * For full copyright and license information, please see the LICENSE * file that was distributed with this source code. * * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean * @author Frédéric Tempez * @copyright Copyright (C) 2018-2020, Frédéric Tempez * @license GNU General Public License, version 3 * @link http://zwiicms.com/ */ /** * Liste des dossiers */ var oldResult = []; var directoryDOM = $("#galleryAddDirectory"); var directoryOldDOM = $("#galleryAddDirectoryOld"); function dirs() { $.ajax({ type: "POST", url: "getUrl(0); ?>/dirs", success: function(result) { if($(result).not(oldResult).length !== 0 || $(oldResult).not(result).length !== 0) { directoryDOM.empty(); for(var i = 0; i < result.length; i++) { directoryDOM.append(function(i) { var option = $("