Changeset 3914:3b2a75b0b25e for plugins
- Timestamp:
- 11/05/18 12:30:00 (7 years ago)
- Branch:
- default
- Location:
- plugins/widgets/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/js/dragdrop.js
r3880 r3914 53 53 54 54 // expand 55 if (widget.find(' img.expand').length == 0) {56 dotclear. postExpander(widget);57 dotclear.view PostContent(widget, 'close');55 if (widget.find('.details-cmd').length == 0) { 56 dotclear.widgetExpander(widget); 57 dotclear.viewWidgetContent(widget, 'close'); 58 58 } 59 59 } -
plugins/widgets/js/widgets.js
r3880 r3914 2 2 'use strict'; 3 3 4 dotclear. postExpander = function(line) {4 dotclear.widgetExpander = function(line) { 5 5 6 6 const title = $(line).find('.widget-name'); … … 22 22 b.onclick = function(e) { 23 23 e.preventDefault(); 24 dotclear.view PostContent($(this).parents('li'));24 dotclear.viewWidgetContent($(this).parents('li')); 25 25 }; 26 26 link.click(function(e) { 27 27 e.preventDefault(); 28 dotclear.view PostContent($(this).parents('li'));28 dotclear.viewWidgetContent($(this).parents('li')); 29 29 }); 30 30 title.prepend(b); 31 31 }; 32 32 33 dotclear.view PostContent = function(line, action) {33 dotclear.viewWidgetContent = function(line, action) { 34 34 action = action || 'toogle'; 35 35 const img = line.find('.details-cmd'); … … 99 99 // plier/déplier 100 100 $('#dndnav > li, #dndextra > li, #dndcustom > li').each(function() { 101 dotclear. postExpander(this);102 dotclear.view PostContent($(this), 'close');101 dotclear.widgetExpander(this); 102 dotclear.viewWidgetContent($(this), 'close'); 103 103 }); 104 104
Note: See TracChangeset
for help on using the changeset viewer.