|
@@ -649,8 +649,8 @@ frappe.views.ReportView = frappe.ui.BaseList.extend({ |
|
|
// setup sorter |
|
|
// setup sorter |
|
|
make_sorter: function() { |
|
|
make_sorter: function() { |
|
|
var me = this; |
|
|
var me = this; |
|
|
this.sort_dialog = new frappe.ui.Dialog({title:'Sorting Preferences'}); |
|
|
|
|
|
$(this.sort_dialog.body).html('<p class="help">Sort By</p>\ |
|
|
|
|
|
|
|
|
this.sort_dialog = new frappe.ui.Dialog({title:__('Sorting Preferences')}); |
|
|
|
|
|
$(this.sort_dialog.body).html('<p class="help">'+__('Sort By')+'</p>\ |
|
|
<div class="sort-column"></div>\ |
|
|
<div class="sort-column"></div>\ |
|
|
<div><select class="sort-order form-control" style="margin-top: 10px; width: 60%;">\ |
|
|
<div><select class="sort-order form-control" style="margin-top: 10px; width: 60%;">\ |
|
|
<option value="asc">'+__('Ascending')+'</option>\ |
|
|
<option value="asc">'+__('Ascending')+'</option>\ |
|
@@ -689,7 +689,7 @@ frappe.views.ReportView = frappe.ui.BaseList.extend({ |
|
|
this.sort_order_next_select.val('desc'); |
|
|
this.sort_order_next_select.val('desc'); |
|
|
|
|
|
|
|
|
// button actions |
|
|
// button actions |
|
|
this.page.add_inner_button(__('Set Sort'), function() { |
|
|
|
|
|
|
|
|
this.page.add_inner_button(__('Sort Order'), function() { |
|
|
me.sort_dialog.show(); |
|
|
me.sort_dialog.show(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@@ -937,4 +937,4 @@ frappe.ui.ColumnPicker = Class.extend({ |
|
|
this.list.set_columns(columns); |
|
|
this.list.set_columns(columns); |
|
|
this.list.run(); |
|
|
this.list.run(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
}); |