Dotclear

Changeset 3434:70552b10c9a3


Ignore:
Timestamp:
12/02/16 15:12:01 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Remove empty link (href=#) from admin, closes #1776

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • admin/_charte.php

    r3421 r3434  
    7979 
    8080     <div id="wrapper" class="clearfix"> 
    81           <div class="hidden-if-no-js collapser-box"><a href="#" id="collapser"> 
     81          <div class="hidden-if-no-js collapser-box"><button id="collapser" class="void-btn"> 
    8282          <img class="collapse-mm visually-hidden" src="images/collapser-hide.png" alt="Cacher le menu" /> 
    8383          <img class="expand-mm visually-hidden" src="images/collapser-show.png" alt="Montrer le menu" /> 
    84           </a></div> 
     84          </button></div> 
    8585          <div id="main"> 
    8686               <div id="content" class="clearfix"> 
  • admin/js/_media.js

    r3369 r3434  
    9898               } 
    9999 
    100                $('<p class="clear"><a class="enhanced-toggle" href="#">' + $msg + '</a></p>').click(function(e) { 
     100               $('<p class="clear"><button class="enhanced-toggle">' + $msg + '</button></p>').click(function(e) { 
    101101                    if ($container.hasClass('enhanced_uploader')) { 
    102102                         $msg = dotclear.msg.enhanced_uploader_activate; 
     
    125125                         displayMessageInQueue(0); 
    126126                    } 
    127                     $(this).find('a').text($msg); 
     127                    $(this).find('button').text($msg); 
    128128                    $('.add-label', me).text(label); 
    129129 
  • admin/js/common.js

    r3408 r3434  
    380380          $(e).append(document.createTextNode(' ')); 
    381381 
    382           $('<a href="#">'+dotclear.msg.select_all+'</a>').click(function() { 
     382          $('<button class="checkbox-helper select-all">'+dotclear.msg.select_all+'</button>').click(function() { 
    383383               if (target !== undefined) { 
    384384                    target.check(); 
     
    391391               return false; 
    392392          }).appendTo($(e)); 
    393           $(e).append(document.createTextNode(' | ')); 
    394  
    395           $('<a href="#">'+dotclear.msg.no_selection+'</a>').click(function() { 
     393          $(e).append(document.createTextNode(' ')); 
     394 
     395          $('<button class="checkbox-helper select-none">'+dotclear.msg.no_selection+'</button>').click(function() { 
    396396               if (target !== undefined) { 
    397397                    target.unCheck(); 
     
    404404               return false; 
    405405          }).appendTo($(e)); 
    406           $(e).append(document.createTextNode(' - ')); 
    407  
    408           $('<a href="#">'+dotclear.msg.invert_sel+'</a>').click(function() { 
     406          $(e).append(document.createTextNode(' ')); 
     407 
     408          $('<button class="checkbox-helper select-reverse">'+dotclear.msg.invert_sel+'</button>').click(function() { 
    409409               if (target !== undefined) { 
    410410                    target.toggleCheck(); 
  • admin/js/meta-editor.js

    r2562 r3434  
    8181               for (var i=0; i<meta.length; i++) { 
    8282                    li = $('<li>'+meta[i]+'</li>'); 
    83                     a_remove = $('<a class="metaRemove" href="#">[x]</a>'); 
     83                    a_remove = $('<button class="metaRemove" href="#"><img src="images/trash.png" alt="remove" /></button>'); 
    8484                    a_remove.get(0).caller = this; 
    8585                    a_remove.get(0).meta_id = meta[i]; 
     
    109109                         var meta_id = $(this).text(); 
    110110                         li = $('<li><a href="' + This.meta_url + $(this).attr('uri') + '">'+meta_id+'</a></li>'); 
    111                          a_remove = $('<a class="metaRemove" href="#">[x]</a>'); 
     111                         a_remove = $('<button class="metaRemove"><img src="images/trash.png" alt="remove" /></button>'); 
    112112                         a_remove.get(0).caller = This; 
    113113                         a_remove.get(0).meta_id = meta_id; 
     
    163163 
    164164                    $(data).find('meta').each(function(i) { 
    165                          meta_link = $('<a href="#">' + $(this).text() + '</a>'); 
     165                         meta_link = $('<button>' + $(this).text() + '</button>'); 
    166166                         meta_link.get(0).meta_id = $(this).text(); 
    167167                         meta_link.click(function() { 
     
    178178 
    179179                    if (list_type == 'more') { 
    180                          var a_more = $('<a href="#" class="metaGetMore"></a>'); 
     180                         var a_more = $('<button class="metaGetMore"></button>'); 
    181181                         a_more.append(This.text_all + String.fromCharCode(160)+String.fromCharCode(187)); 
    182182                         a_more.click(function() { 
     
    193193                         target.append(pa); 
    194194 
    195                          var a = $('<a href="#" class="metaGetList">' + This.text_choose + '</a>'); 
     195                         var a = $('<button class="metaGetList">' + This.text_choose + '</button>'); 
    196196                         a.click(function() { 
    197197                              $(this).parent().next().removeClass('hide'); 
  • admin/media_item.php

    r3433 r3434  
    341341     echo 
    342342     '<p>'. 
    343      '<a id="media-select-ok" class="button submit" href="#">'.__('Select').'</a> '. 
    344      '<a id="media-select-cancel" class="button" href="#">'.__('Cancel').'</a>'. 
     343     '<button id="media-select-ok" class="submit">'.__('Select').'</button> '. 
     344     '<button id="media-select-cancel">'.__('Cancel').'</button>'. 
    345345     form::hidden(array('type'),html::escapeHTML($media_type)). 
    346346     form::hidden(array('title'),html::escapeHTML($file->media_title)). 
     
    505505     echo 
    506506     '<p>'. 
    507      '<a id="media-insert-ok" class="button submit" href="#">'.__('Insert').'</a> '. 
    508      '<a id="media-insert-cancel" class="button" href="#">'.__('Cancel').'</a>'. 
     507     '<button id="media-insert-ok" class="submit">'.__('Insert').'</button> '. 
     508     '<button id="media-insert-cancel">'.__('Cancel').'</button>'. 
    509509     form::hidden(array('type'),html::escapeHTML($media_type)). 
    510510     form::hidden(array('title'),html::escapeHTML($file->media_title)). 
  • admin/popup_link.php

    r3421 r3434  
    4040'</form>'. 
    4141 
    42 '<p><a class="button reset" href="#" id="link-insert-cancel">'.__('Cancel').'</a> - '. 
    43 '<strong><a class="button" href="#" id="link-insert-ok">'.__('Insert').'</a></strong></p>'."\n". 
     42'<p><button class="reset" id="link-insert-cancel">'.__('Cancel').'</button> - '. 
     43'<button id="link-insert-ok"><strong>'.__('Insert').'</strong></button></p>'."\n". 
    4444 
    4545'<script type="text/javascript">'."\n". 
  • admin/popup_posts.php

    r3375 r3434  
    7575echo '</div>'; 
    7676 
    77 echo '<p><a class="button" href="#" id="link-insert-cancel">'.__('cancel').'</a></p>'; 
     77echo '<p><button id="link-insert-cancel">'.__('cancel').'</button></p>'; 
    7878 
    7979dcPage::closePopup(); 
  • admin/style/default.css

    r3412 r3434  
    12071207  -webkit-appearance: button; } 
    12081208 
     1209/* Boutons javascript (dépliage/repliage, …) */ 
     1210.void-btn { 
     1211  border: none; 
     1212  border-radius: 0; 
     1213  padding: 0; } 
     1214 
    12091215/* validation */ 
    12101216input[type=submit], 
     1217button[type=submit], 
    12111218a.button.submit, 
     1219button.submit, 
    12121220input.button.start { 
    12131221  color: #fff; 
     
    12191227input[type=submit]:hover, 
    12201228input[type=submit]:focus, 
     1229button[type=submit]:hover, 
     1230button[type=submit]:focus, 
    12211231input.button.start:hover, 
    12221232input.button.start:focus, 
     1233button.submit:hover, 
     1234button.submit:focus, 
    12231235a.button.submit:hover, 
    12241236a.button.submit:focus { 
     
    12761288input[type=submit].delete, 
    12771289input.delete, 
     1290button[type=submit].delete, 
     1291button.delete, 
    12781292a.button.delete { 
    12791293  color: #900; } 
     
    12811295input[type=submit].delete:hover, 
    12821296input.delete:hover, 
     1297button[type=submit].delete:hover, 
     1298button.delete:hover, 
    12831299a.button.delete:hover, 
    12841300input[type=submit].delete:focus, 
    12851301input.delete:focus, 
     1302button[type=submit].delete:focus, 
     1303button.delete:focus, 
    12861304a.button.delete:focus { 
    12871305  color: #ffffff; 
     
    12921310  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); } 
    12931311 
    1294 #info-box a.button { 
     1312#info-box a.button, #info-box button { 
    12951313  padding: 0 .5em; 
    12961314  margin-left: 2em; } 
    12971315 
    1298 .button.add { 
     1316.button.add, 
     1317button.add { 
    12991318  color: #000; 
    13001319  background-color: #bee74b; 
     
    13061325.button.add:hover, 
    13071326.button.add:active, 
    1308 .button.add:focus { 
     1327.button.add:focus, 
     1328button.add:hover, 
     1329button.add:active, 
     1330button.add:focus { 
    13091331  background-color: #9bca1c; 
    13101332  background-image: linear-gradient(to bottom, #9bca1c, #bee74b); 
     
    13211343/* disabled */ 
    13221344input.disabled, 
    1323 input[type=submit].disabled { 
     1345input[type=submit].disabled, 
     1346button.disabled, 
     1347button[type=submit].disabled { 
    13241348  text-shadow: none; 
    13251349  color: #676e78; 
     
    13281352 
    13291353input.disabled:hover, 
    1330 input[type=submit].disabled:hover { 
     1354input[type=submit].disabled:hover, 
     1355button.disabled:hover, 
     1356button[type=submit].disabled:hover { 
    13311357  color: #676e78; 
    13321358  background: #eee; 
    13331359  border: 1px solid #CCC; } 
     1360 
     1361/* specific buttons */ 
     1362.checkbox-helper { 
     1363  font-size: smaller; } 
     1364 
     1365.metaRemove, 
     1366.addMeta button:not(.metaGetMore) { 
     1367  border: none; 
     1368  border-radius: 0; 
     1369  padding: 0; 
     1370  background: none; } 
     1371 
     1372.addMeta button:not(.metaGetMore) { 
     1373  border-bottom: #676e78 1px dotted; 
     1374  text-shadow: initial; 
     1375  box-shadow: initial; 
     1376  margin-bottom: 2px; } 
    13341377 
    13351378.warn, 
  • admin/style/scss/partials/_buttons.scss

    r3365 r3434  
    4040 
    4141 
     42/* Boutons javascript (dépliage/repliage, …) */ 
     43 
     44.void-btn { 
     45    border: none; 
     46    border-radius: 0; 
     47    padding: 0; 
     48} 
     49 
    4250/* validation */ 
    4351 
    4452input[type=submit], 
     53button[type=submit], 
    4554a.button.submit, 
     55button.submit, 
    4656input.button.start { 
    4757    color: #fff; 
     
    5464input[type=submit]:hover, 
    5565input[type=submit]:focus, 
     66button[type=submit]:hover, 
     67button[type=submit]:focus, 
    5668input.button.start:hover, 
    5769input.button.start:focus, 
     70button.submit:hover, 
     71button.submit:focus, 
    5872a.button.submit:hover, 
    5973a.button.submit:focus { 
     
    118132input[type=submit].delete, 
    119133input.delete, 
     134button[type=submit].delete, 
     135button.delete, 
    120136a.button.delete { 
    121137    color: #900; 
     
    124140input[type=submit].delete:hover, 
    125141input.delete:hover, 
     142button[type=submit].delete:hover, 
     143button.delete:hover, 
    126144a.button.delete:hover, 
    127145input[type=submit].delete:focus, 
    128146input.delete:focus, 
     147button[type=submit].delete:focus, 
     148button.delete:focus, 
    129149a.button.delete:focus { 
    130150    color: #ffffff; 
     
    136156} 
    137157 
    138 #info-box a.button { 
     158#info-box a.button, #info-box button { 
    139159    padding: 0 .5em; 
    140160    margin-left: 2em; 
    141161} 
    142162 
    143 .button.add { 
     163.button.add, 
     164button.add { 
    144165    color: #000; 
    145166    background-color: #bee74b; 
     
    154175.button.add:hover, 
    155176.button.add:active, 
    156 .button.add:focus { 
     177.button.add:focus, 
     178button.add:hover, 
     179button.add:active, 
     180button.add:focus { 
    157181    background-color: #9bca1c; 
    158182    @include background-image(linear-gradient(to bottom, #9bca1c, #bee74b)); 
     
    176200 
    177201input.disabled, 
    178 input[type=submit].disabled { 
     202input[type=submit].disabled, 
     203button.disabled, 
     204button[type=submit].disabled { 
    179205    text-shadow: none; 
    180206    color: #676e78; 
     
    184210 
    185211input.disabled:hover, 
    186 input[type=submit].disabled:hover { 
     212input[type=submit].disabled:hover, 
     213button.disabled:hover, 
     214button[type=submit].disabled:hover { 
    187215    color: #676e78; 
    188216    background: #eee; 
    189217    border: 1px solid #CCC; 
    190218} 
     219 
     220 
     221/* specific buttons */ 
     222 
     223.checkbox-helper { 
     224    font-size: smaller; 
     225} 
     226 
     227.metaRemove, 
     228.addMeta button:not(.metaGetMore) { 
     229    border: none; 
     230    border-radius: 0; 
     231    padding: 0; 
     232    background: none; 
     233} 
     234.addMeta button:not(.metaGetMore) { 
     235    border-bottom: #676e78 1px dotted; 
     236    text-shadow: initial; 
     237    box-shadow: initial; 
     238    margin-bottom: 2px; 
     239} 
  • inc/admin/lib.dc.page.php

    r3432 r3434  
    235235          echo 
    236236          '<div id="wrapper" class="clearfix">'."\n". 
    237           '<div class="hidden-if-no-js collapser-box"><a href="#" id="collapser">'. 
     237          '<div class="hidden-if-no-js collapser-box"><button id="collapser" class="void-btn">'. 
    238238          '<img class="collapse-mm visually-hidden" src="images/collapser-hide.png" alt="'.__('Hide main menu').'" />'. 
    239239          '<img class="expand-mm visually-hidden" src="images/collapser-show.png" alt="'.__('Show main menu').'" />'. 
    240           '</a></div>'. 
     240          '</button></div>'. 
    241241          '<div id="main" role="main">'."\n". 
    242242          '<div id="content" class="clearfix">'."\n"; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map