Changeset 1606:6e2d8e9dd7d7 for admin
- Timestamp:
- 08/27/13 21:38:26 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r1562 r1606 115 115 // Confirm post deletion 116 116 $('input[name="delete"]').click(function() { 117 117 return window.confirm(dotclear.msg.confirm_delete_post); 118 118 }); 119 119 … … 121 121 $('#notes-area label').toggleWithLegend($('#notes-area').children().not('label'),{ 122 122 cookie: 'dcx_post_notes', 123 legend_click:true, 123 124 hide: $('#post_notes').val() == '' 124 125 }); 125 $('#create_cat').toggleWithLegend( 126 $('#create_cat').parent().children().not('#create_cat'), 127 {} // no cookie on new category as we don't use this every day 128 ); 129 $('#post_lang').parent().toggleWithLegend($('#post_lang'),{ 130 cookie: 'dcx_post_lang' 131 }); 132 $('#post_password').parent().toggleWithLegend($('#post_password'),{ 126 $('#create_cat').toggleWithLegend($('#create_cat').parent().children().not('#create_cat'),{ 127 // no cookie on new category as we don't use this every day 128 legend_click: true 129 }); 130 $('#post_lang').parent().children('label').toggleWithLegend($('#post_lang'),{ 131 cookie: 'dcx_post_lang', 132 legend_click: true 133 }); 134 $('#post_password').parent().children('label').toggleWithLegend($('#post_password'),{ 133 135 cookie: 'dcx_post_password', 136 legend_click: true, 134 137 hide: $('#post_password').val() == '' 135 138 }); 136 $('#post_status').parent().toggleWithLegend($('#post_status'),{ 137 cookie: 'dcx_post_status' 138 }); 139 $('#post_dt').parent().toggleWithLegend($('#post_dt').parent().children().not('label'),{ 140 cookie: 'dcx_post_dt' 141 }); 142 $('#post_format').parent().toggleWithLegend($('#post_format').parent().children().not('label').add($('#post_format').parents('p').next()),{ 143 cookie: 'dcx_post_format' 144 }); 145 $('#cat_id').parent().toggleWithLegend($('#cat_id'),{ 146 cookie: 'cat_id' 147 }); 148 $('#post_url').parent().toggleWithLegend($('#post_url').parent().children().not('label'),{ 149 cookie: 'post_url' 139 $('#post_status').parent().children('label').toggleWithLegend($('#post_status'),{ 140 cookie: 'dcx_post_status', 141 legend_click: true 142 }); 143 $('#post_dt').parent().children('label').toggleWithLegend($('#post_dt').parent().children().not('label'),{ 144 cookie: 'dcx_post_dt', 145 legend_click: true 146 }); 147 $('#post_format').parent().children('label').toggleWithLegend($('#post_format'),{ 148 cookie: 'dcx_post_format', 149 legend_click: true 150 }); 151 $('#cat_id').parent().children('label').toggleWithLegend($('#cat_id'),{ 152 cookie: 'cat_id', 153 legend_click: true 154 }); 155 $('#post_url').parent().children('label').toggleWithLegend($('#post_url').parent().children().not('label'),{ 156 cookie: 'post_url', 157 legend_click: true 150 158 }); 151 159 // We load toolbar on excerpt only when it's ready
Note: See TracChangeset
for help on using the changeset viewer.