Dotclear

Changeset 3447:b1afe8a19f26 for admin


Ignore:
Timestamp:
12/08/16 17:44:54 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Revert meta-editor.js buttons to a void links, fixes #2226 (addresses #1776)

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/js/meta-editor.js

    r3445 r3447  
    8181               for (var i=0; i < meta.length; i++) { 
    8282                    li = $('<li>'+meta[i]+'</li>'); 
    83                     a_remove = $('<button type="button" class="metaRemove meta-helper"><img src="images/trash.png" alt="remove" /></button>'); 
     83                    a_remove = $('<a href="#" type="button" class="metaRemove meta-helper"><img src="images/trash.png" alt="remove" /></a>'); 
    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 = $('<button type="button" class="metaRemove meta-helper"><img src="images/trash.png" alt="remove" /></button>'); 
     111                         a_remove = $('<a href="#" type="button" class="metaRemove meta-helper"><img src="images/trash.png" alt="remove" /></a>'); 
    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 = $('<button type="button" class="metaItem meta-helper">' + $(this).text() + '</button>'); 
     165                         meta_link = $('<a href="#" type="button" class="metaItem meta-helper">' + $(this).text() + '</a>'); 
    166166                         meta_link.get(0).meta_id = $(this).text(); 
    167167                         meta_link.click(function() { 
     
    178178 
    179179                    if (list_type == 'more') { 
    180                          var a_more = $('<button type="button" class="metaGetMore meta-helper"></button>'); 
     180                         var a_more = $('<a href="#" type="button" class="button metaGetMore meta-helper"></a>'); 
    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 = $('<button type="button" class="metaGetList meta-helper">' + This.text_choose + '</button>'); 
     195                         var a = $('<a href="#" type="button" class="button metaGetList meta-helper">' + This.text_choose + '</a>'); 
    196196                         a.click(function() { 
    197197                              $(this).parent().next().removeClass('hide'); 
  • admin/style/default.css

    r3444 r3447  
    13621362#gototop, 
    13631363.metaGetList, 
    1364 .metaGetMore { 
     1364.metaGetMore, 
     1365a.checkbox-helper, 
     1366a#gototop, 
     1367a.metaGetList, 
     1368a.metaGetMore { 
    13651369  font-size: 0.825em; 
    13661370  color: #333; 
     
    13741378  #gototop:hover, 
    13751379  .metaGetList:hover, 
    1376   .metaGetMore:hover { 
     1380  .metaGetMore:hover, 
     1381  a.checkbox-helper:hover, 
     1382  a#gototop:hover, 
     1383  a.metaGetList:hover, 
     1384  a.metaGetMore:hover { 
    13771385    background: #a2cbe9; 
    13781386    box-shadow: none; 
     
    13971405 
    13981406.metaRemove, 
    1399 .addMeta button:not(.metaGetMore) { 
     1407.addMeta button:not(.metaGetMore), 
     1408.addMeta a:not(.metaGetMore) { 
    14001409  border: none; 
    14011410  border-radius: 0; 
     
    14031412  background: none; } 
    14041413 
    1405 .addMeta button:not(.metaGetMore) { 
     1414.addMeta button:not(.metaGetMore), 
     1415.addMeta a:not(.metaGetMore) { 
    14061416  text-shadow: initial; 
    14071417  box-shadow: initial; 
    14081418  margin-bottom: 2px; } 
    1409   .addMeta button:not(.metaGetMore):hover, .addMeta button:not(.metaGetMore):focus { 
     1419  .addMeta button:not(.metaGetMore):hover, .addMeta button:not(.metaGetMore):focus, 
     1420  .addMeta a:not(.metaGetMore):hover, 
     1421  .addMeta a:not(.metaGetMore):focus { 
    14101422    background: #fc0; } 
    14111423 
  • admin/style/scss/partials/_buttons.scss

    r3442 r3447  
    227227#gototop, 
    228228.metaGetList, 
    229 .metaGetMore { 
     229.metaGetMore, 
     230a.checkbox-helper, 
     231a#gototop, 
     232a.metaGetList, 
     233a.metaGetMore { 
    230234     font-size: 0.825em; 
    231235     color: #333; 
     
    263267 
    264268.metaRemove, 
    265 .addMeta button:not(.metaGetMore) { 
     269.addMeta button:not(.metaGetMore), 
     270.addMeta a:not(.metaGetMore) { 
    266271     border: none; 
    267272     border-radius: 0; 
     
    270275} 
    271276 
    272 .addMeta button:not(.metaGetMore) { 
     277.addMeta button:not(.metaGetMore), 
     278.addMeta a:not(.metaGetMore) { 
    273279     text-shadow: initial; 
    274280     box-shadow: initial; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map