Dotclear

Changeset 3845:29f6bacd00ef for plugins


Ignore:
Timestamp:
09/01/18 17:28:20 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.14
source:
24d665ae5a0f67f231a8bc9bdb58cde6d716234c
Message:

I forgot the widgets :-p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/js/widgets.js

    r3768 r3845  
    1313  title.empty().append(order).append(link).append(tools).append(br); 
    1414 
    15   var b = document.createElement('input'); 
    16   b.setAttribute('type', 'submit'); 
     15  var b = document.createElement('button'); 
     16  b.setAttribute('type', 'button'); 
    1717  b.className = 'details-cmd'; 
    1818  b.value = dotclear.img_plus_txt; 
    1919  b.setAttribute('aria-label', dotclear.img_plus_alt); 
     20  var t = document.createTextNode(dotclear.img_plus_txt); 
     21  b.appendChild(t); 
    2022  b.onclick = function(e) { 
    2123    e.preventDefault(); 
     
    3638  if (action == 'close' || (action == 'toogle' && !isopen)) { 
    3739    line.find('.widgetSettings').hide(); 
     40    img.html(dotclear.img_plus_txt); 
    3841    img.attr('value', dotclear.img_plus_txt); 
    3942    img.attr('aria-label', dotclear.img_plus_alt); 
    4043  } else if (action == 'open' || (action == 'toogle' && isopen)) { 
    4144    line.find('.widgetSettings').show(); 
     45    img.html(dotclear.img_minus_txt); 
    4246    img.attr('value', dotclear.img_minus_txt); 
    4347    img.attr('aria-label', dotclear.img_minus_alt); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map