Logical Mistake In Core.js

Dear developers, please consider code in file /js/tygh/core.js starting from line 996 (CS Cart version 4.3.9):

var dlg = $('.cm-dialog-auto-open');
dlg.ceDialog('open', $.ceDialog('get_params', dlg));

There is a logical error admitted in a code sample. As dlg.length can be greater than 1, so, what is the definite result of $.ceDialog('get_params', dlg) ? Result of invocation of $.ceDialog.bind('get_params') in this case returns params of the whole dlg objects collection, which is incorrect. The correct behavior can be reproduced by something like

$('.cm-dialog-auto-open').each(function(){
    $(this).ceDialog('open', $.ceDialog('get_params', this));
});

Regards.

Please post issue to the bug tracker

http://forum.cs-cart.com/tracker/