Changeset 3581:978d426ac7b6
- Timestamp:
- 09/03/17 18:40:10 (8 years ago)
- Branch:
- allow-target-blank-simpleMenu
- Location:
- plugins/simpleMenu
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/_public.php
r3580 r3581 139 139 '">'. 140 140 '<a href="'.$href.'"'.$item['title']. 141 ((isset($m['targetBlank']) && ($m['targetBlank'])) ? 'target="_blank"' : '').'>'. 141 ((isset($m['targetBlank']) && ($m['targetBlank'])) ? 142 'target="_blank" title="'.__("the link will open a new window").'"' 143 : '').'>'. 142 144 '<span class="simple-menu-label">'.$item['label'].'</span>'. 143 145 $item['span'].'</a>'. … … 153 155 } 154 156 } 155 -
plugins/simpleMenu/locales/fr/main.po
r3579 r3581 1 1 msgid "Open URL on a new tab" 2 2 msgstr "S'ouvre dans un nouvel onglet" 3 4 msgid "the link will open a new window" 5 msgstr "Ce lien s'ouvrira dans une nouvelle fenêtre" -
plugins/simpleMenu/simplemenu.js
r3182 r3581 1 $(function() { 2 $("#menuitemslist").sortable({'cursor':'move'}); 3 $("#menuitemslist tr").hover(function () { 4 $(this).css({'cursor':'move'}); 5 }, function () { 6 $(this).css({'cursor':'auto'}); 7 }); 8 $('#menuitems').submit(function() { 9 var order=[]; 10 $("#menuitemslist tr td input.position").each(function() { 11 order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1')); 12 }); 13 $("input[name=im_order]")[0].value = order.join(','); 14 return true; 15 }); 16 $("#menuitemslist tr td input.position").hide(); 17 $("#menuitemslist tr td.handle").addClass('handler'); 18 dotclear.condSubmit('#menuitems tr td input[type="checkbox"]','#menuitems #remove-action'); 19 }); 1 2 $(function(){$("#menuitemslist").sortable({'cursor':'move'});$("#menuitemslist tr").hover(function(){$(this).css({'cursor':'move'});},function(){$(this).css({'cursor':'auto'});});$('#menuitems').submit(function(){var order=[];$("#menuitemslist tr td input.position").each(function(){order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1'));});$("input[name=im_order]")[0].value=order.join(',');return true;});$("#menuitemslist tr td input.position").hide();$("#menuitemslist tr td.handle").addClass('handler');dotclear.condSubmit('#menuitems tr td input[type="checkbox"]','#menuitems #remove-action');});
Note: See TracChangeset
for help on using the changeset viewer.