fix: sort selector toggle
This commit is contained in:
parent
84baaa5283
commit
5f9d183ffc
1 changed files with 2 additions and 2 deletions
|
|
@ -36,9 +36,9 @@ frappe.ui.SortSelector = Class.extend({
|
|||
});
|
||||
|
||||
// select field
|
||||
this.wrapper.find('.dropdown a.option').on('click', function() {
|
||||
this.wrapper.find('.dropdown-menu a.option').on('click', function() {
|
||||
me.sort_by = $(this).attr('data-value');
|
||||
me.wrapper.find('.dropdown .dropdown-text').html($(this).html());
|
||||
me.wrapper.find('.dropdown-text').html($(this).html());
|
||||
(me.onchange || me.change)(me.sort_by, me.sort_order);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue