mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Series Index can now be filtered and no longer fetches twice when starting.
This commit is contained in:
@@ -12,11 +12,9 @@ define(
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Shared/Toolbar/ToolbarLayoutTemplate',
|
||||
|
||||
regions: {
|
||||
left_1 : '.x-toolbar-left-1',
|
||||
left_2 : '.x-toolbar-left-2',
|
||||
right_1: '.x-toolbar-right-1',
|
||||
right_2: '.x-toolbar-right-2'
|
||||
ui: {
|
||||
left_x : '.x-toolbar-left',
|
||||
right_x: '.x-toolbar-right'
|
||||
},
|
||||
|
||||
initialize: function (options) {
|
||||
@@ -97,8 +95,17 @@ define(
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this[position + '_' + (index + 1).toString()].show(buttonGroupView);
|
||||
|
||||
var regionId = position + "_" + (index + 1);
|
||||
var region = this[regionId];
|
||||
|
||||
if (!region) {
|
||||
var regionClassName = "x-toolbar-" + position + "-" + (index + 1);
|
||||
this.ui[position + '_x'].append('<div class="toolbar-group '+regionClassName+'" />\r\n');
|
||||
region = this.addRegion(regionId, "." + regionClassName);
|
||||
}
|
||||
|
||||
region.show(buttonGroupView);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user