Dotclear

Changeset 3640:7df99527ffd0


Ignore:
Timestamp:
12/29/17 15:08:35 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:
  • Add module id in () after module label in modules' list
  • cope with required textarea with CKEditor (still not perfect)
  • html::escapeHTML() is === with , so replace the first by the second
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r3639 r3640  
    804804     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 
    805805     __('Comment:').'</label> '. 
    806      form::textarea('comment_content',50,8,html::escapeHTML(''),'','',false,'required placeholder="'.__('Comment').'"'). 
     806     form::textarea('comment_content',50,8,'','','',false,'required placeholder="'.__('Comment').'"'). 
    807807     '</p>'. 
    808808 
  • inc/admin/lib.moduleslist.php

    r3639 r3640  
    633633                    if (in_array('expander', $cols)) { 
    634634                         echo 
    635                          html::escapeHTML($module['name']); 
     635                         html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''); 
    636636                    } 
    637637                    else { 
    638638                         echo 
    639639                         '<label for="'.html::escapeHTML($this->list_id).'_modules_'.html::escapeHTML($id).'">'. 
    640                          html::escapeHTML($module['name']). 
     640                         html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''). 
    641641                         '</label>'; 
    642642                    } 
     
    644644               else { 
    645645                    echo 
    646                     html::escapeHTML($module['name']). 
     646                    html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''). 
    647647                    form::hidden(array('modules['.$count.']'), html::escapeHTML($id)); 
    648648               } 
  • plugins/dcCKEditor/_post_config.php

    r3367 r3640  
    264264               $('#cke_post_excerpt').toggleClass('hide',$('#post_excerpt').hasClass('hide')); 
    265265          }); 
     266 
     267         $('form textarea').attr('required', ''); 
     268         $.each(CKEDITOR.instances, function (instance) { 
     269             CKEDITOR.instances[instance].on("change", function (e) { 
     270                 for (instance in CKEDITOR.instances) { 
     271                     CKEDITOR.instances[instance].updateElement(); 
     272                     $('form').parsley().validate(); 
     273                 } 
     274             }); 
     275         }); 
     276 
    266277     }); 
    267278 
Note: See TracChangeset for help on using the changeset viewer.

Sites map