Changeset 854:893c8fc07a74 for admin
- Timestamp:
- 08/01/12 10:59:38 (13 years ago)
- Branch:
- sexy
- Location:
- admin
- Files:
-
- 30 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r851 r854 182 182 -------------------------------------------------------- */ 183 183 dcPage::open(__('Dashboard'), 184 dcPage::jsToolBar().185 184 dcPage::jsLoad('js/_index.js'). 186 185 # --BEHAVIOR-- adminDashboardHeaders -
admin/js/_index.js
r454 r854 2 2 var f = $('#quick-entry'); 3 3 if (f.length > 0) { 4 var contentTb = new jsToolBar($('#post_content',f)[0]);5 contentTb.switchMode($('#post_format',f).val());6 4 7 5 $('input[name=save]',f).click(function() { … … 21 19 22 20 function quickPost(f,status) { 23 if (contentTb.getMode() == 'wysiwyg') {24 contentTb.syncContents('iframe');25 }26 21 27 22 var params = { … … 53 48 $('#post_title',f).val(''); 54 49 $('#post_content',f).val(''); 55 if (contentTb.getMode() == 'wysiwyg') {56 contentTb.syncContents('textarea');57 }58 50 } 59 51 -
admin/js/_post.js
r740 r854 77 77 if (document.getElementById('edit-entry')) 78 78 { 79 // Get document format and prepare toolbars80 79 var formatField = $('#post_format').get(0); 81 $(formatField).change(function() { 82 excerptTb.switchMode(this.value); 83 contentTb.switchMode(this.value); 84 }); 85 86 var excerptTb = new jsToolBar(document.getElementById('post_excerpt')); 87 var contentTb = new jsToolBar(document.getElementById('post_content')); 88 excerptTb.context = contentTb.context = 'post'; 89 } 90 91 if (document.getElementById('comment_content')) { 92 var commentTb = new jsToolBar(document.getElementById('comment_content')); 80 93 81 } 94 82 … … 123 111 }); 124 112 125 // We load toolbar on excerpt only when it's ready126 113 $('#excerpt-area label').toggleWithLegend($('#excerpt-area').children().not('label'),{ 127 fn: function() { excerptTb.switchMode(formatField.value);},114 fn: function() { }, 128 115 cookie: 'dcx_post_excerpt', 129 116 hide: $('#post_excerpt').val() == '' 130 117 }); 131 118 132 // Load toolbars133 contentTb.switchMode(formatField.value);134 119 135 120 // Replace attachment remove links by a POST form submit … … 226 211 }); 227 212 228 $('#add-comment').onetabload(function() {229 commentTb.draw('xhtml');230 });231 213 }); -
admin/plugins.php
r500 r854 236 236 foreach ($p_available as $k => $v) 237 237 { 238 238 239 $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 239 240 $is_deactivable = $v['root_writable']; … … 244 245 '<td class="minimal">'.html::escapeHTML($v['version']).'</td>'. 245 246 '<td class="maximal"><strong>'.html::escapeHTML($v['name']).'</strong> '. 246 '<br />'.html::escapeHTML($v['desc']).'</td>'. 247 '<br />'.html::escapeHTML($v['desc']); 248 echo '</td>'. 247 249 '<td class="nowrap action">'; 248 250 … … 281 283 foreach ($p_disabled as $k => $v) 282 284 { 285 $dep = $core->plugins->getUnmatchedDependencies($k); print_r($dep); 286 $invalid=(count($dep) > 0); 287 283 288 $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 284 $is_activable = $v['root_writable'];289 $is_activable = !$invalid && $v['root_writable']; 285 290 286 291 echo 287 '<tr class="line wide">'. 288 '<td class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong></td>'. 292 '<tr class="line wide'.($invalid ? " error" : "").'">'. 293 '<td class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong>'; 294 if ($invalid) { 295 echo '<br /><span style="color:#c00"><strong>'.__('Unmet dependencies: ').'</strong>'. 296 join(', ',$dep).'</span>'; 297 } 298 echo '</td>'; 299 289 300 '<td class="nowrap action">'; 290 301 -
admin/post.php
r852 r854 250 250 dcPage::open($page_title.' - '.__('Entries'), 251 251 dcPage::jsDatePicker(). 252 dcPage::jsToolBar().253 252 dcPage::jsModal(). 254 253 dcPage::jsMetaEditor().
Note: See TracChangeset
for help on using the changeset viewer.