Dotclear


Ignore:
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_post.js

    r1760 r1832  
    9090                    $(this).val(last_post_format); 
    9191               } 
     92                
     93               $('.format_control > *').addClass('hide'); 
     94               $('.format_control:not(.control_no_'+$(this).val()+') > *').removeClass('hide'); 
    9295          }); 
    9396 
     
    117120               return window.confirm(dotclear.msg.confirm_delete_post); 
    118121          }); 
     122 
     123          // Markup validator 
     124          var v = $('<div class="format_control"><p><a id="a-validator"></a></p><div/>').get(0); 
     125          $('.format_control').before(v); 
     126          var a = $('#a-validator').get(0); 
     127          a.href = '#'; 
     128          a.className = 'button '; 
     129          $(a).click(function() { 
     130                
     131               excerpt_content = $('#post_excerpt').css('display') != 'none' ? $('#post_excerpt').val() : $('#excerpt-area iframe').contents().find('body').html(); 
     132               post_content    = $('#post_content').css('display') != 'none' ? $('#post_content').val() : $('#content-area iframe').contents().find('body').html(); 
     133                
     134               var params = { 
     135                    xd_check: dotclear.nonce, 
     136                    f: 'validatePostMarkup', 
     137                    excerpt: excerpt_content, 
     138                    content: post_content, 
     139                    format: $('#post_format').get(0).value, 
     140                    lang: $('#post_lang').get(0).value 
     141               }; 
     142 
     143               $.post('services.php',params,function(data) { 
     144                    if ($(data).find('rsp').attr('status') != 'ok') { 
     145                         alert($(data).find('rsp message').text()); 
     146                         return false; 
     147                    } 
     148                          
     149                    $('.message, .success, .error, .warning-msg').remove(); 
     150 
     151                    if ($(data).find('valid').text() == 1) { 
     152                         var p = document.createElement('p'); 
     153                         p.id = 'markup-validator'; 
     154                          
     155                         $(p).addClass('success'); 
     156                         $(p).text(dotclear.msg.xhtml_valid); 
     157                         $('#entry-content h3').after(p); 
     158                         $(p).backgroundFade({sColor:'#9BCA1C',eColor:'#bee74b',steps:20}); 
     159                    } else { 
     160                         var div = document.createElement('div'); 
     161                         div.id = 'markup-validator'; 
     162                          
     163                         $(div).addClass('error'); 
     164                         $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text()); 
     165                         $('#entry-content h3').after(div); 
     166                         $(div).backgroundFade({sColor:'#ffdec8',eColor:'#ffbaba',steps:20}); 
     167                    } 
     168                     
     169                    if ( $('#post_excerpt').text() != excerpt_content || $('#post_content').text() != post_content ) { 
     170                         var pn = document.createElement('p'); 
     171                         $(pn).addClass('warning-msg'); 
     172                         $(pn).text(dotclear.msg.warning_validate_no_save_content); 
     173                         $('#entry-content h3').after(pn); 
     174                    } 
     175 
     176                    return false; 
     177               }); 
     178 
     179               return false; 
     180          }); 
     181 
     182          a.appendChild(document.createTextNode(dotclear.msg.xhtml_validator)); 
     183           
     184          $('.format_control > *').addClass('hide'); 
     185          $('.format_control:not(.control_no_'+last_post_format+') > *').removeClass('hide'); 
    119186 
    120187          // Hide some fields 
     
    184251          }); 
    185252 
    186           // Markup validator 
    187           var h = document.createElement('h4'); 
    188           var a = document.createElement('a'); 
    189           a.href = '#'; 
    190           a.className = 'button'; 
    191           $(a).click(function() { 
    192                var params = { 
    193                     xd_check: dotclear.nonce, 
    194                     f: 'validatePostMarkup', 
    195                     excerpt: $('#post_excerpt').text(), 
    196                     content: $('#post_content').text(), 
    197                     format: $('#post_format').get(0).value, 
    198                     lang: $('#post_lang').get(0).value 
    199                }; 
    200  
    201                $.post('services.php',params,function(data) { 
    202                     if ($(data).find('rsp').attr('status') != 'ok') { 
    203                          alert($(data).find('rsp message').text()); 
    204                          return false; 
    205                     } 
    206  
    207                     if ($(data).find('valid').text() == 1) { 
    208                          var p = document.createElement('p'); 
    209                          p.id = 'markup-validator'; 
    210  
    211                          if ($('#markup-validator').length > 0) { 
    212                               $('#markup-validator').remove(); 
    213                          } 
    214  
    215                          $(p).addClass('message'); 
    216                          $(p).text(dotclear.msg.xhtml_valid); 
    217                          $(p).insertAfter(h); 
    218                          $(p).backgroundFade({sColor:'#676e78',eColor:'#ffcc00',steps:50},function() { 
    219                                    $(this).backgroundFade({sColor:'#ffcc00',eColor:'#676e78'}); 
    220                          }); 
    221                     } else { 
    222                          var div = document.createElement('div'); 
    223                          div.id = 'markup-validator'; 
    224  
    225                          if ($('#markup-validator').length > 0) { 
    226                               $('#markup-validator').remove(); 
    227                          } 
    228  
    229                          $(div).addClass('error'); 
    230                          $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text()); 
    231                          $(div).insertAfter(h); 
    232                          $(div).backgroundFade({sColor:'#ffffff',eColor:'#FFBABA',steps:50},function() { 
    233                                    $(this).backgroundFade({sColor:'#ffbaba',eColor:'#ffffff'}); 
    234                          }); 
    235                     } 
    236  
    237                     return false; 
    238                }); 
    239  
    240                return false; 
    241           }); 
    242  
    243           a.appendChild(document.createTextNode(dotclear.msg.xhtml_validator)); 
    244           h.appendChild(a); 
    245           $(h).appendTo('#entry-content'); 
    246  
    247253          // Check unsaved changes before XHTML conversion 
    248254          var excerpt = $('#post_excerpt').val(); 
  • admin/js/common.js

    r1798 r1834  
    263263     }, 
    264264 
    265      checkboxesHelpers: function(e) { 
     265     checkboxesHelpers: function(e, target) { 
    266266          $(e).append(document.createTextNode(dotclear.msg.to_select)); 
    267267          $(e).append(document.createTextNode(' ')); 
    268268 
     269          target = target || $(e).parents('form').find('input[type="checkbox"]'); 
     270           
    269271          var a = document.createElement('a'); 
    270272          a.href='#'; 
    271273          $(a).append(document.createTextNode(dotclear.msg.select_all)); 
    272274          a.onclick = function() { 
    273                $(this).parents('form').find('input[type="checkbox"]').check(); 
     275               target.check(); 
    274276               return false; 
    275277          }; 
     
    282284          $(a).append(document.createTextNode(dotclear.msg.no_selection)); 
    283285          a.onclick = function() { 
    284                $(this).parents('form').find('input[type="checkbox"]').unCheck(); 
     286               target.unCheck(); 
    285287               return false; 
    286288          }; 
     
    293295          $(a).append(document.createTextNode(dotclear.msg.invert_sel)); 
    294296          a.onclick = function() { 
    295                $(this).parents('form').find('input[type="checkbox"]').toggleCheck(); 
     297               target.toggleCheck(); 
    296298               return false; 
    297299          }; 
  • admin/js/jsToolBar/jsToolBar.wysiwyg.js

    r1753 r1833  
    4646      
    4747     if (mode == 'xhtml') { 
     48          this.wwg_mode = true; 
    4849          this.draw(mode); 
    4950     } else { 
     
    5152               this.syncContents('iframe'); 
    5253          } 
     54          this.wwg_mode = false; 
    5355          this.removeEditor(); 
    5456          this.textarea.style.display = ''; 
     
    8688          } else if (window.navigator.product != undefined &&  
    8789                                    window.navigator.product == 'Gecko') { 
    88                This.ibody.innerHTML = '<p><br _moz_editor_blogus_node="TRUE" _moz_dirty=""></p>'; 
     90               This.ibody.innerHTML = '<p><br _moz_editor_blogus_node="TRUE" _moz_dirty=""/></p>'; 
    8991          } else { 
    9092               var idoc = This.iwin.document; 
  • admin/js/meta-editor.js

    r1741 r1819  
    113113      
    114114     addMetaDialog: function() { 
    115           var This = this; 
    116115           
    117116          if (this.submit_button == null) { 
     
    121120          } 
    122121           
    123           // View meta list 
    124           var a = $('<a href="#">' + this.text_choose + '</a>'); 
    125           a.click(function() { 
    126                This.showMetaList(metaEditor.prototype.meta_type,$(this).parent()); 
    127                return false; 
    128           }); 
    129122          if (this.text_separation != '') { 
    130123               this.target.append($('<p></p>').addClass('form-note').append(this.text_separation.replace(/%s/,this.meta_type))); 
    131124          } 
    132           this.target.append($('<p></p>').append(a)); 
     125           
     126          this.showMetaList(metaEditor.prototype.meta_type,this.target); 
     127           
    133128     }, 
    134129      
    135130     showMetaList: function(type,target) { 
    136           target.empty(); 
    137           target.append('...'); 
    138           target.addClass('addMeta'); 
    139131           
    140132          var params = { 
     
    151143           
    152144          $.get(this.service_uri,params,function(data) { 
     145                
     146               var pl = $('<p class="addMeta"></p>'); 
     147                
     148               $('.addMeta').remove(); 
     149                
    153150               if ($(data).find('meta').length > 0) { 
    154                     target.empty(); 
     151                    pl.empty(); 
    155152                    var meta_link; 
    156153                     
     
    165162                          
    166163                         if (i>0) { 
    167                               target.append(', '); 
     164                              pl.append(', '); 
    168165                         } 
    169                          target.append(meta_link); 
     166                         pl.append(meta_link); 
    170167                    }); 
    171168                     
     
    177174                              return false; 
    178175                         }); 
    179                          target.append(', ').append(a_more); 
    180                     } 
     176                         pl.append(', ').append(a_more); 
     177                          
     178                         pl.addClass('hide'); 
     179                          
     180                         var pa = $('<p></p>'); 
     181                         target.append(pa); 
     182                          
     183                         var a = $('<a href="#" class="metaGetList">' + This.text_choose + '</a>'); 
     184                         a.click(function() { 
     185                              $('.addMeta').removeClass('hide'); 
     186                              $('.metaGetList').remove(); 
     187                              return false; 
     188                         }); 
     189                          
     190                         pa.append(a); 
     191                    } 
     192                     
     193                    target.append(pl); 
     194                     
    181195               } else { 
    182                     target.empty(); 
     196                    pl.empty(); 
    183197               } 
    184198          }); 
  • admin/post.php

    r1789 r1831  
    455455                         '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 
    456456                         '</p>'. 
    457                          '<p>'.($post_id && $post_format != 'xhtml' ?  
    458                          '<a id="convert-xhtml" class="button" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
    459                          __('Convert to XHTML').'</a>' : '').'</p></div>')), 
     457                         '<p class="format_control control_no_xhtml">'. 
     458                         '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
     459                         __('Convert to XHTML').'</a></p></div>')), 
    460460          'metas-box' => array( 
    461461               'title' => __('Ordering'), 
     
    533533           
    534534          "post_content" => 
    535                '<p class="area"><label class="required" '. 
     535               '<p class="area" id="content-area"><label class="required" '. 
    536536               'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    537537               form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 
  • admin/style/default.css

    r1798 r1834  
    20012001     } 
    20022002/* caché pour tout le monde */ 
    2003 .hide { 
     2003.hide, .button.hide { 
    20042004     display: none; 
    20052005     } 
  • inc/admin/lib.dc.page.php

    r1793 r1834  
    584584          self::jsVar('dotclear.msg.xhtml_not_valid', 
    585585               __('There are XHTML markup errors.')). 
     586          self::jsVar('dotclear.msg.warning_validate_no_save_content', 
     587               __('Attention: an audit of a content not yet registered.')). 
    586588          self::jsVar('dotclear.msg.confirm_change_post_format', 
    587589               __('You have unsaved changes. Switch post format will loose these changes. Proceed anyway?')). 
  • locales/_pot/main.pot

    r1718 r1832  
    30013001msgstr "" 
    30023002 
     3003#: inc/admin/lib.dc.page.php:469 
     3004msgid "Attention: an audit of a content not yet registered." 
     3005msgstr "" 
     3006 
    30033007#: inc/admin/lib.dc.page.php:471 
    30043008msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
  • locales/bn/main.po

    r1718 r1832  
    21982198msgstr "" 
    21992199 
     2200msgid "Attention: an audit of a content not yet registered." 
     2201msgstr "" 
     2202 
    22002203msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22012204msgstr "" 
  • locales/ca/main.po

    r1718 r1832  
    22782278msgstr "" 
    22792279 
     2280msgid "Attention: an audit of a content not yet registered." 
     2281msgstr "" 
     2282 
    22802283msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22812284msgstr "" 
  • locales/cs/main.po

    r1718 r1832  
    22012201msgstr "Jsou tam XHTML chyby.." 
    22022202 
     2203msgid "Attention: an audit of a content not yet registered." 
     2204msgstr "" 
     2205 
    22032206msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22042207msgstr "" 
  • locales/da/main.po

    r1718 r1832  
    22092209msgstr "" 
    22102210 
     2211msgid "Attention: an audit of a content not yet registered." 
     2212msgstr "" 
     2213 
    22112214msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22122215msgstr "" 
  • locales/de/main.po

    r1718 r1832  
    22012201msgstr "Es gibt XHTML-Markup-Fehler." 
    22022202 
     2203msgid "Attention: an audit of a content not yet registered." 
     2204msgstr "" 
     2205 
    22032206msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22042207msgstr "Du hast Änderungen nicht gespeichert. Wenn du das Format des Eintrags änderst, gehen die Änderungen verloren. Trotzdem fortfahren?" 
  • locales/en/main.po

    r1718 r1832  
    21612161msgstr "" 
    21622162 
     2163msgid "Attention: an audit of a content not yet registered." 
     2164msgstr "" 
     2165 
    21632166msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21642167msgstr "" 
  • locales/eo/main.po

    r1718 r1832  
    21482148msgstr "" 
    21492149 
     2150msgid "Attention: an audit of a content not yet registered." 
     2151msgstr "" 
     2152 
    21502153msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21512154msgstr "" 
  • locales/es-ar/main.po

    r1718 r1832  
    22162216msgstr "Hay errores en el lenguaje de marcas XHTML." 
    22172217 
     2218msgid "Attention: an audit of a content not yet registered." 
     2219msgstr "" 
     2220 
    22182221msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22192222msgstr "" 
  • locales/es/main.po

    r1718 r1832  
    22212221msgstr "Hay errores en las etiquetas XHTML." 
    22222222 
     2223msgid "Attention: an audit of a content not yet registered." 
     2224msgstr "" 
     2225 
    22232226msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22242227msgstr "" 
  • locales/eu/main.po

    r1718 r1832  
    21482148msgstr "" 
    21492149 
     2150msgid "Attention: an audit of a content not yet registered." 
     2151msgstr "" 
     2152 
    21502153msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21512154msgstr "" 
  • locales/fr/main.po

    r1793 r1834  
    23252325msgstr "Il y a des erreurs XHTML." 
    23262326 
     2327msgid "Attention: an audit of a content not yet registered." 
     2328msgstr "Attention : la vérification porte sur un contenu non encore enregistré." 
     2329 
    23272330msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    23282331msgstr "Vous avez des modifications non sauvegardées. Changer de format vous fera perdre ces modifications. Continuer ?" 
  • locales/hu/main.po

    r1718 r1832  
    22572257msgstr "Vannak hibák az XHTML kódban." 
    22582258 
     2259msgid "Attention: an audit of a content not yet registered." 
     2260msgstr "" 
     2261 
    22592262msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22602263msgstr "" 
  • locales/it/main.po

    r1718 r1832  
    22002200msgstr "Sono stati trovati degli errori XHTML." 
    22012201 
     2202msgid "Attention: an audit of a content not yet registered." 
     2203msgstr "" 
     2204 
    22022205msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22032206msgstr "" 
  • locales/ja/main.po

    r1718 r1832  
    22302230msgstr "XHTMLマークアップエラーがあります。" 
    22312231 
     2232msgid "Attention: an audit of a content not yet registered." 
     2233msgstr "" 
     2234 
    22322235msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22332236msgstr "" 
  • locales/ko/main.po

    r1718 r1832  
    22302230msgstr "XHTML 오류가 있습니다." 
    22312231 
     2232msgid "Attention: an audit of a content not yet registered." 
     2233msgstr "" 
     2234 
    22322235msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22332236msgstr "" 
  • locales/lt/main.po

    r1718 r1832  
    20102010msgstr "Yra XHTML markup klaidų." 
    20112011 
     2012msgid "Attention: an audit of a content not yet registered." 
     2013msgstr "" 
     2014 
    20122015msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    20132016msgstr "Yra neišsaugotų pakeitimų. Įrašo formato keitimas panaikins visus atnaujinimus. Tęsti?" 
  • locales/nl/main.po

    r1718 r1832  
    21622162msgstr "" 
    21632163 
     2164msgid "Attention: an audit of a content not yet registered." 
     2165msgstr "" 
     2166 
    21642167msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21652168msgstr "" 
  • locales/oc/main.po

    r1718 r1832  
    21812181msgstr "" 
    21822182 
     2183msgid "Attention: an audit of a content not yet registered." 
     2184msgstr "" 
     2185 
    21832186msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21842187msgstr "" 
  • locales/pl/main.po

    r1718 r1832  
    21742174msgstr "Wystąpiły błędy składni XHTML." 
    21752175 
     2176msgid "Attention: an audit of a content not yet registered." 
     2177msgstr "" 
     2178 
    21762179msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21772180msgstr "Niektóre zmiany nie zostały zachowane. Zmiana formatu wpisu spowoduje że zostaną utracone. Kontynuować?" 
  • locales/pt-br/main.po

    r1718 r1832  
    22972297msgstr "Têm erros no XHTML." 
    22982298 
     2299msgid "Attention: an audit of a content not yet registered." 
     2300msgstr "" 
     2301 
    22992302msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    23002303msgstr "" 
  • locales/pt/main.po

    r1718 r1832  
    22082208msgstr "O código XHTML contem erros." 
    22092209 
     2210msgid "Attention: an audit of a content not yet registered." 
     2211msgstr "" 
     2212 
    22102213msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22112214msgstr "" 
  • locales/ro/main.po

    r1718 r1832  
    21592159msgstr "" 
    21602160 
     2161msgid "Attention: an audit of a content not yet registered." 
     2162msgstr "" 
     2163 
    21612164msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21622165msgstr "" 
  • locales/ru/main.po

    r1718 r1832  
    22012201msgstr "В разметке XHTML есть ошибки." 
    22022202 
     2203msgid "Attention: an audit of a content not yet registered." 
     2204msgstr "" 
     2205 
    22032206msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22042207msgstr "Вы не сохранили изменения. Переключение формата поста  приведет к потере этих изменений. Продолжить?" 
  • locales/sr/main.po

    r1718 r1832  
    22432243msgstr "Il y a des erreurs XHTML." 
    22442244 
     2245msgid "Attention: an audit of a content not yet registered." 
     2246msgstr "Attention : la vérification porte sur un contenu non encore enregistré." 
     2247 
    22452248msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22462249msgstr "" 
  • locales/sv/main.po

    r1718 r1832  
    21482148msgstr "" 
    21492149 
     2150msgid "Attention: an audit of a content not yet registered." 
     2151msgstr "" 
     2152 
    21502153msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    21512154msgstr "" 
  • locales/te/main.po

    r1718 r1832  
    22272227msgstr "" 
    22282228 
     2229msgid "Attention: an audit of a content not yet registered." 
     2230msgstr "" 
     2231 
    22292232msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22302233msgstr "" 
  • locales/tr/main.po

    r1718 r1832  
    22042204msgstr "XHTML markup hataları var." 
    22052205 
     2206msgid "Attention: an audit of a content not yet registered." 
     2207msgstr "" 
     2208 
    22062209msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22072210msgstr "" 
  • locales/zh-cn/main.po

    r1718 r1832  
    22072207msgstr "这是 XHTML 标记的错误。" 
    22082208 
     2209msgid "Attention: an audit of a content not yet registered." 
     2210msgstr "" 
     2211 
    22092212msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 
    22102213msgstr "" 
  • plugins/pages/page.php

    r1741 r1833  
    406406                         '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 
    407407                         '</p>'. 
    408                          '<p>'.($post_id && $post_format != 'xhtml' ?  
    409                          '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
    410                          __('Convert to XHTML').'</a>' : '').'</p></div>')), 
     408                         '<p class="format_control control_wiki">'. 
     409                         '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
     410                         __('Convert to XHTML').'</a></p></div>')), 
    411411          'metas-box' => array( 
    412412               'title' => __('Ordering'), 
     
    473473           
    474474          "post_content" => 
    475                '<p class="area"><label class="required" '. 
     475               '<p class="area" id="content-area"><label class="required" '. 
    476476               'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    477477               form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 
     
    494494     echo '<div id="entry-wrapper">'; 
    495495     echo '<div id="entry-content"><div class="constrained">'; 
     496     echo '<h3 class="out-of-screen-if-js">'.__('Edit page').'</h3>'; 
    496497      
    497498      
  • plugins/pings/lib.pings.php

    r1398 r1818  
    6565               $item .= 
    6666               '<p class="ping-services"><label for="pings_do-'.$i.'" class="classic">'. 
    67                form::checkbox(array('pings_do[]','pings_do-'.$i),html::escapeHTML($v),in_array($v,$pings_do)).' '. 
     67               form::checkbox(array('pings_do[]','pings_do-'.$i),html::escapeHTML($v),in_array($v,$pings_do), 'check-ping-services').' '. 
    6868               html::escapeHTML($k).'</label></p>'; 
    6969               $i++; 
  • plugins/pings/post.js

    r1699 r1818  
    44               p = $('<p></p>'); 
    55               p.addClass('ping-services'); 
    6                a = $('<a href="#"></a>'); 
    7                a.text(dotclear.msg.check_all); 
    8                a.click(function() { 
    9                     $('p.ping-services input[type="checkbox"]').attr('checked','checked'); 
    10                     return false; 
    11                }); 
    12                $('p.ping-services:last').after(p.append(a)); 
     6               $('p.ping-services:last').after(p); 
     7               dotclear.checkboxesHelpers($('p.ping-services:last').get(0), $('.check-ping-services')); 
    138          } 
    149          $('h5.ping-services').toggleWithLegend($('p.ping-services'),{ 
  • plugins/tags/style.css

    r0 r1820  
    9999     color: white; 
    100100} 
     101#post_meta_input { 
     102    margin: 0 0.5em 0 0; 
     103    width: 13em; 
     104} 
     105#post_meta_input:focus { 
     106     -moz-box-sizing: content-box; 
     107} 
     108#tags-edit input[type=button] { 
     109     width: 3.5em; 
     110} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map