jQuery(function(){ // Tabs jQuery('#tabs').tabs(); // Tri des galerie_image_cat_0 jQuery("#liste_tri_image_cat_0 ul").disableSelection(); jQuery("#liste_tri_image_cat_0 ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=galerie_image_cat_0'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des galerie_image_cat_1 jQuery("#galerie_image_cat_1 ul").disableSelection(); jQuery("#galerie_image_cat_1 ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=galerie_image_cat_1'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des galerie_images jQuery("#liste_tri_images ul").disableSelection(); jQuery("#liste_tri_images ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=galerie_images'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des galerie_images_details jQuery("#galerie_images_details").disableSelection(); jQuery("#galerie_images_details").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=galerie_images_details'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des galerie_options jQuery("#liste_tri_options").disableSelection(); jQuery("#liste_tri_options").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=galerie_images_options'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des medias_cat_0 jQuery("#liste_tri_media_cat_0 ul").disableSelection(); jQuery("#liste_tri_media_cat_0 ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=media_cat_0'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des medias_cat_1 jQuery("#liste_tri_media_cat_1 ul").disableSelection(); jQuery("#liste_tri_media_cat_1 ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=media_cat_1'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des medias jQuery("#liste_tri_medias ul").disableSelection(); jQuery("#liste_tri_medias ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=medias'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des applications jQuery("#ordre_app").disableSelection(); jQuery("#ordre_app").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=ordre_app'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Tri des taches_cat_0 jQuery("#taches_cat_0 ul").disableSelection(); jQuery("#taches_cat_0 ul").sortable({ cursor: 'move', placeholder: 'ui-state-highlight', update: function() { var order = jQuery(this).sortable("serialize") + '&action=taches_cat_0'; jQuery.post("applications/jquery/addons/jquery-drag-n-drop/updateDB.php", order, function(theResponse){ // jQuery("#contentRight").html(theResponse); }); } }); // Boîte de dialogue jQuery("#dialog").dialog("destroy"); jQuery("#dialog-modal").dialog({ width: '300px', height: 'auto', modal: true, position: 'center', resizable: false, zIndex: 8 }); // Boîte de dialogue appelée jQuery("#dialog-modal_appel").dialog("destroy"); jQuery("#dialog-modal_appel").dialog({ width: '300px', height: 'auto', modal: true, position: 'center', resizable: false, zIndex: 8, autoOpen: false }); // Calendrier var dates = jQuery('#date_coordonnees').datepicker({ defaultDate: "+1w", changeMonth: true, changeYear: true, dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'], dayNamesMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'], dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'], monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'], monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Juin','Juil','Août','Sept','Oct','Nov','Déc'], prevText: 'Préc.', nextText: 'Suiv.', regional: 'fr', showAnim: 'show', autoSize: true, dateFormat: 'dd/mm/yy', numberOfMonths: [1, 1], showOn: 'both', yearRange: '1900:2010', direction: 'up', firstDay: 1, buttonImage: 'applications/jquery/images/calendar.gif', buttonImageOnly: true }); // Blind function runEffectBlind(id){ var options = {}; jQuery(id).toggle('blind',options,500); }; jQuery("#blinder").click(function() { event: "mouseover"; runEffectBlind("#optionsArticles"); return false; }); jQuery("#showDetailsOptions").click(function() { var id = jQuery("#showDetailsOptions").val("id_option"); event: "mouseover"; runEffectBlind("#detailsOptionsArticles_"+id); return false; }); jQuery("#detailsOptions").accordion({ collapsible: true }); var icons = { header: "ui-icon-circle-arrow-e", headerSelected: "ui-icon-circle-arrow-s" }; jQuery("#parametresPrivileges").accordion({ fillSpace: false, icons: icons, active: -1, collapsible: true, autoHeight: false, navigation: true }); jQuery("#accordion").accordion({ fillSpace: false, icons: icons, alwaysOpen: false, active: -1, collapsible: false, autoHeight: false, navigation: false }); }); jQuery(document).ready(function() { jQuery(".boutonLogout").mouseover(function () { jQuery(this).addClass("boutonLogoutHover"); }); jQuery(".boutonLogout").mouseout(function () { jQuery(this).removeClass("boutonLogoutHover"); }); jQuery(".boutonPrint").mouseover(function () { jQuery(this).addClass("boutonPrintHover"); }); jQuery(".boutonPrint").mouseout(function () { jQuery(this).removeClass("boutonPrintHover"); }); jQuery(".boutonLogin").mouseover(function () { jQuery(this).addClass("boutonLoginHover"); }); jQuery(".boutonLogin").mouseout(function () { jQuery(this).removeClass("boutonLoginHover"); }); jQuery(".boutonPanier, .boutonPanierActive").mouseover(function () { jQuery(this).addClass("boutonPanierHover"); }); jQuery(".boutonPanier, .boutonPanierActive").mouseout(function () { jQuery(this).removeClass("boutonPanierHover"); }); jQuery(".prevImg").mouseover(function () { jQuery(this).addClass("prevImgHover"); }); jQuery(".prevImg").mouseout(function () { jQuery(this).removeClass("prevImgHover"); }); jQuery(".nextImg").mouseover(function () { jQuery(this).addClass("nextImgHover"); }); jQuery(".nextImg").mouseout(function () { jQuery(this).removeClass("nextImgHover"); }); jQuery(".backImg").mouseover(function () { jQuery(this).addClass("backImgHover"); }); jQuery(".backImg").mouseout(function () { jQuery(this).removeClass("backImgHover"); }); });