/* This file is part of Jeedom.
*
* Jeedom is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Jeedom 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Jeedom. If not, see .
*/
/* Permet la réorganisation des commandes dans l'équipement */
$("#table_cmd").sortable({
axis: "y",
cursor: "move",
items: ".cmd",
placeholder: "ui-state-highlight",
tolerance: "intersect",
forcePlaceholderSize: true
})
/* Fonction permettant l'affichage des commandes dans l'équipement */
function addCmdToTable(_cmd) {
if (!isset(_cmd)) {
var _cmd = {configuration: {}}
}
if (!isset(_cmd.configuration)) {
_cmd.configuration = {}
}
var tr = '