Dotclear

Changeset 1629:236bd21d1e72


Ignore:
Timestamp:
08/28/13 15:58:22 (10 years ago)
Author:
Lepeltier kévin
Branch:
Ticket #1614
Message:

Ticket #1614 : navigation au clavier dans la page Widgets

Location:
plugins/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/style.css

    r1526 r1629  
    6363     margin-bottom: -1px; 
    6464} 
     65.widget-name a.aexpand, .widget-name a.aexpand:link, .widget-name a.aexpand:visited { 
     66    border: 0 none; 
     67    color: #000000; 
     68    text-decoration: none; 
     69} 
    6570.removeWidget { 
    6671     padding: 8px 6px; 
  • plugins/widgets/widgets.js

    r665 r1629  
    132132               // Append config control 
    133133               title = $('p.widget-name',items[i]).get(0); 
     134               order = $(title).find('input[name*=order]'); 
     135               link = $('<a href="#" alt="expand" class="aexpand"/>').append($(title).text()); 
     136               $(title).empty().append(order).append(link); 
    134137               img_ctrl = title.firstChild; 
    135138                
     
    149152               img.control = title.nextSibling; 
    150153               img.onclick = function() { widgetConfig.call(this); }; 
     154               link.click(function(e) { 
     155                    e.preventDefault(); 
     156                    widgetConfig.call($(this).prevAll('img').get(0)); 
     157               }); 
    151158               space = document.createTextNode(' '); 
    152159               title.insertBefore(img,img_ctrl); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map