mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
added support for multi-button groups to toolbar
This commit is contained in:
parent
7ae9e79540
commit
19732ba31a
14 changed files with 115 additions and 49 deletions
21
UI/Shared/Toolbar/CommandView.js
Normal file
21
UI/Shared/Toolbar/CommandView.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Shared.Toolbar.CommandView = Backbone.Marionette.ItemView.extend({
|
||||
template : 'Shared/Toolbar/CommandTemplate',
|
||||
className: 'btn',
|
||||
|
||||
events: {
|
||||
'click': 'onClick'
|
||||
},
|
||||
|
||||
onClick: function () {
|
||||
window.alert('click');
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue