Changeset 3845:29f6bacd00ef for plugins
- Timestamp:
- 09/01/18 17:28:20 (7 years ago)
- Branch:
- 2.14
- source:
- 24d665ae5a0f67f231a8bc9bdb58cde6d716234c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/js/widgets.js
r3768 r3845 13 13 title.empty().append(order).append(link).append(tools).append(br); 14 14 15 var b = document.createElement(' input');16 b.setAttribute('type', ' submit');15 var b = document.createElement('button'); 16 b.setAttribute('type', 'button'); 17 17 b.className = 'details-cmd'; 18 18 b.value = dotclear.img_plus_txt; 19 19 b.setAttribute('aria-label', dotclear.img_plus_alt); 20 var t = document.createTextNode(dotclear.img_plus_txt); 21 b.appendChild(t); 20 22 b.onclick = function(e) { 21 23 e.preventDefault(); … … 36 38 if (action == 'close' || (action == 'toogle' && !isopen)) { 37 39 line.find('.widgetSettings').hide(); 40 img.html(dotclear.img_plus_txt); 38 41 img.attr('value', dotclear.img_plus_txt); 39 42 img.attr('aria-label', dotclear.img_plus_alt); 40 43 } else if (action == 'open' || (action == 'toogle' && isopen)) { 41 44 line.find('.widgetSettings').show(); 45 img.html(dotclear.img_minus_txt); 42 46 img.attr('value', dotclear.img_minus_txt); 43 47 img.attr('aria-label', dotclear.img_minus_alt);
Note: See TracChangeset
for help on using the changeset viewer.