Dotclear

Changeset 3914:3b2a75b0b25e for plugins


Ignore:
Timestamp:
11/05/18 12:30:00 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Fixes #2288 - button is now used rather than an img

Location:
plugins/widgets/js
Files:
2 edited

Legend:

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

    r3880 r3914  
    5353 
    5454      // expand 
    55       if (widget.find('img.expand').length == 0) { 
    56         dotclear.postExpander(widget); 
    57         dotclear.viewPostContent(widget, 'close'); 
     55      if (widget.find('.details-cmd').length == 0) { 
     56        dotclear.widgetExpander(widget); 
     57        dotclear.viewWidgetContent(widget, 'close'); 
    5858      } 
    5959    } 
  • plugins/widgets/js/widgets.js

    r3880 r3914  
    22'use strict'; 
    33 
    4 dotclear.postExpander = function(line) { 
     4dotclear.widgetExpander = function(line) { 
    55 
    66  const title = $(line).find('.widget-name'); 
     
    2222  b.onclick = function(e) { 
    2323    e.preventDefault(); 
    24     dotclear.viewPostContent($(this).parents('li')); 
     24    dotclear.viewWidgetContent($(this).parents('li')); 
    2525  }; 
    2626  link.click(function(e) { 
    2727    e.preventDefault(); 
    28     dotclear.viewPostContent($(this).parents('li')); 
     28    dotclear.viewWidgetContent($(this).parents('li')); 
    2929  }); 
    3030  title.prepend(b); 
    3131}; 
    3232 
    33 dotclear.viewPostContent = function(line, action) { 
     33dotclear.viewWidgetContent = function(line, action) { 
    3434  action = action || 'toogle'; 
    3535  const img = line.find('.details-cmd'); 
     
    9999  // plier/déplier 
    100100  $('#dndnav > li, #dndextra > li, #dndcustom > li').each(function() { 
    101     dotclear.postExpander(this); 
    102     dotclear.viewPostContent($(this), 'close'); 
     101    dotclear.widgetExpander(this); 
     102    dotclear.viewWidgetContent($(this), 'close'); 
    103103  }); 
    104104 
Note: See TracChangeset for help on using the changeset viewer.

Sites map