Changeset 2058:d1f76e8d304c
- Timestamp:
- 09/24/13 10:19:09 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/list.js
r2056 r2058 158 158 $("#pageslist tr td input.position").hide(); 159 159 $("#pageslist tr td.handle").addClass('handler'); 160 dotclear.postsActionsHelper(); 160 161 $("form input[type=submit]").click(function() { 162 $("input[type=submit]", $(this).parents("form")).removeAttr("clicked"); 163 $(this).attr("clicked", "true"); 164 }) 165 166 $('#form-entries').submit(function() { 167 var action = $(this).find('select[name="action"]').val(); 168 var checked = false; 169 if ($("input[name=reorder][clicked=true]").val()) { 170 return true; 171 } 172 $(this).find('input[name="entries[]"]').each(function() { 173 if (this.checked) { 174 checked = true; 175 } 176 }); 177 178 if (!checked) { return false; } 179 180 if (action == 'delete') { 181 return window.confirm(dotclear.msg.confirm_delete_posts.replace('%s',$('input[name="entries[]"]:checked').size())); 182 } 183 184 return true; 185 }); 161 186 });
Note: See TracChangeset
for help on using the changeset viewer.