Dotclear


Ignore:
Timestamp:
11/08/13 16:54:05 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.6
Message:

Fix a11y when expanding content in lists views (entries, comments, pages)
Closes #1848
Need refactoring and tests !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_comments.js

    r2526 r2527  
    11dotclear.commentExpander = function(line) { 
    22     $('<a href="#"><img src="'+dotclear.img_plus_src+'" alt="'+dotclear.img_plus_alt+'"/></a>') 
    3           .click(function() { 
     3          .click(function(e) { 
    44               dotclear.toggleArrow(this); 
    55               dotclear.viewCommentContent(line); 
     6               e.preventDefault(); 
    67          }) 
    78          .prependTo($(line).children().get(0)); // first td 
     
    1011dotclear.commentsExpander = function(line,lines) { 
    1112     $('<a href="#"><img src="'+dotclear.img_plus_src+'" alt="'+dotclear.img_plus_alt+'"/></a>') 
    12           .click(function() { 
     13          .click(function(e) { 
    1314               dotclear.toggleArrow(this); 
    1415               lines.each(function() { 
     
    1617                    dotclear.viewCommentContent(this,action); 
    1718               }); 
     19               e.preventDefault(); 
    1820          }) 
    1921          .prependTo($(line).children().get(0)); // first td 
Note: See TracChangeset for help on using the changeset viewer.

Sites map