{combine_script id='jquery.ui.sortable' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.sortable.min.js'} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {footer_script} jQuery(document).ready(function(){ jQuery(".drag_button").show(); jQuery(".categoryLi").css("cursor","move"); jQuery(".categoryUl").sortable({ axis: "y", opacity: 0.8, update : function() { jQuery("#manualOrderInfo").show(); } }); jQuery("#infoOrdering").submit(function(){ ar = jQuery('.categoryUl').sortable('toArray'); for(i=0;i < ar.length ;i++) { iord = ar[i].split('iord_'); document.getElementsByName('infoOrd[' + iord[1] + ']')[0].value = i; } }); jQuery("#cancelManualOrderInfo").click(function(){ jQuery(".categoryUl").sortable("cancel"); jQuery("#manualOrderInfo").hide(); }); jQuery('.categoryLi').mouseover(function(){ jQuery(this).children('span').show(); }); jQuery('.categoryLi').mouseout(function(){ jQuery(this).children('span').hide(); }); jQuery('#aip_sumit').click(function(){ jQuery("#add_info_edit").show(); jQuery("#leg_add").show(); jQuery("#leg_edit").hide(); jQuery('#aip_add').empty(); jQuery('#aip_hide').attr('checked', false); jQuery('#hideid').val(0); jQuery("textarea[name=inserwording]").focus(); }); jQuery("#addinfoClose").click(function(){ jQuery("#add_info_edit").hide(); }); jQuery('.edit_libinfo').click(function(){ var id_prop_photo=$(this).data('id'); var lib=$(this).data('lib'); var hide=$(this).data('hide'); jQuery("#add_info_edit").show(); jQuery("#leg_add").hide(); jQuery("#leg_edit").show(); jQuery('#hideid').val(id_prop_photo); jQuery('#aip_add').text(lib); if(hide==0){ jQuery('#aip_hide').prop('checked', false); }else{ jQuery('#aip_hide').prop('checked', true); } jQuery("textarea[name=inserwording]").focus(); }); jQuery('.pphide').click(function(){ var id= $(this).data('id'); var link= $(this).data('link2'); $.ajax({ method: 'POST', url: link, success: function(Datalc,textStatus,jqXHR) { jQuery('#pphide'+id).hide(); jQuery('#ppshow'+id).show(); jQuery('#iord_'+id).css("opacity","0.4"); } }); }); jQuery('.ppshow').click(function(){ var id= $(this).data('id'); var link= $(this).data('link2'); $.ajax({ method: 'POST', url: link, success: function(Datalc,textStatus,jqXHR) { jQuery('#pphide'+id).show(); jQuery('#ppshow'+id).hide(); jQuery('#iord_'+id).css("opacity","1"); } }); }); }); {/footer_script} {html_style} .mouse:hover{ cursor:pointer; } {/html_style}

{'Manage properties photos'|@translate}

{if isset ($addinfotemplate)}

{'Create new Property photo'|@translate}

{'Properties List'|@translate}
{/if} {if isset ($gestionD)}
{'Properties additionals'|@translate} {foreach from=$info_photos item=infophoto} {/foreach}
{$infophoto.AIPWORDING}
{if $useED==1} {'Use Extended Description tags...'|translate}' {/if}
{/if}