Ticket #20333 (new Bug)

Opened 4 months ago

archetypes.querywidget: multiselectionwidget not initially reopenable

Reported by: uschwarz Owned by: vangheem
Priority: minor Milestone: 4.x
Component: User Experience and Interface Version: 4.3
Keywords: Cc:

Description

If you add a multiselection field (such as "Tag") to a query widget, it starts out open, and once closed, it cannot be opened without reloading the page.

Root cause: querywidget.js, $.querywidget.createWidget, case 'MultipleSelectionWidget' needs to take into account and manually create the on('click' handlers etc. set up for it elsewhere, in init.

Using this callback seems to work on first look:

case 'MultipleSelectionWidget':

wrapper.load(portal_url + '/@@archetypes-querywidget-multipleselectionwidget',

{'index': index}, this needs a callback function?? function(){

$(this).find(".multipleSelectionWidget dt").show().on('click', function () {

$(this).parent().children('dd').toggle();

});

$(this).find(".multipleSelectionWidget dd").addClass('widgetPulldownMenu').hide();

} );

break;

Note: See TracTickets for help on using tickets.