Dotclear

Changeset 3447:b1afe8a19f26


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)

Files:
4 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; 
  • plugins/tags/style.css

    r3438 r3447  
    1 .tag0 {  } 
    2 .tag10 { font-size: 140%; } 
    3 .tag20 { font-size: 150%; } 
    4 .tag30 { font-size: 160%; } 
    5 .tag40 { font-size: 170%; } 
    6 .tag50 { font-size: 180%; } 
    7 .tag60 { font-size: 190%; } 
    8 .tag70 { font-size: 200%; } 
    9 .tag80 { font-size: 210%; } 
    10 .tag90 { font-size: 220%; } 
    11 .tag100 { font-size: 230%; } 
     1.tag0 {} 
     2 
     3.tag10 { 
     4     font-size: 140%; 
     5} 
     6 
     7.tag20 { 
     8     font-size: 150%; 
     9} 
     10 
     11.tag30 { 
     12     font-size: 160%; 
     13} 
     14 
     15.tag40 { 
     16     font-size: 170%; 
     17} 
     18 
     19.tag50 { 
     20     font-size: 180%; 
     21} 
     22 
     23.tag60 { 
     24     font-size: 190%; 
     25} 
     26 
     27.tag70 { 
     28     font-size: 200%; 
     29} 
     30 
     31.tag80 { 
     32     font-size: 210%; 
     33} 
     34 
     35.tag90 { 
     36     font-size: 220%; 
     37} 
     38 
     39.tag100 { 
     40     font-size: 230%; 
     41} 
     42 
    1243table.tags { 
    1344     margin-left: 3em; 
    14      } 
     45} 
     46 
    1547tr.tagLetter span { 
    16      font-size : 250%; 
     48     font-size: 250%; 
    1749     border: none; 
    18      display : block; 
     50     display: block; 
    1951     width: 1ex; 
    2052     position: relative; 
    2153     top: 0.80em; 
    2254     left: -2ex; 
    23      } 
     55} 
     56 
    2457ul.metaList { 
    2558     margin: 0 0 1em 0; 
    2659     padding: 0; 
    27      } 
     60} 
     61 
    2862ul.metaList li { 
    2963     margin: 0; 
     
    3165     list-style: none; 
    3266     list-style-position: inside; 
    33      } 
     67} 
     68 
     69 
     70/* 
    3471a.metaRemove { 
    3572     color : #999 !important; 
     
    4986     font-weight: bold; 
    5087     } 
     88*/ 
     89 
     90 
    5191/* Auto Complete */ 
     92 
    5293.ac_results { 
    5394     padding: 0px; 
     
    5697     overflow: hidden; 
    5798     z-index: 99999; 
    58      } 
     99} 
     100 
    59101.ac_results ul { 
    60102     width: 100%; 
     
    63105     padding: 0; 
    64106     margin: 0; 
    65      } 
     107} 
     108 
    66109.ac_results li { 
    67110     margin: 0px; 
     
    82125     line-height: 16px; 
    83126     overflow: hidden; 
    84      } 
     127} 
     128 
    85129.ac_loading { 
    86130     background: transparent url('index.php?pf=tags/img/loader.gif') right center no-repeat; 
    87      } 
     131} 
     132 
    88133.ac_odd { 
    89134     background-color: #eee; 
    90      } 
     135} 
     136 
    91137.ac_over { 
    92138     background-color: #2373A8; 
    93139     color: white; 
    94      } 
     140} 
     141 
    95142#post_meta_input:focus { 
    96143     -moz-box-sizing: content-box; 
    97      } 
     144} 
     145 
    98146#tags-edit input[type=text] { 
    99147     width: 11.5em; 
    100      } 
     148} 
     149 
    101150.tag-actions form { 
    102151     display: inline-block; 
    103152     margin-right: 1.5em; 
    104      } 
     153} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map