Dotclear

Changeset 3447:b1afe8a19f26 for admin/js


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)

File:
1 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'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map