mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Quality Profile add card
This commit is contained in:
parent
d7c70a9c91
commit
4f1b27a523
6 changed files with 54 additions and 38 deletions
7
UI/Settings/Quality/Profile/AddCardTemplate.html
Normal file
7
UI/Settings/Quality/Profile/AddCardTemplate.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<li>
|
||||
<div class="quality-profile-item add-card x-add-card">
|
||||
<span class="center well">
|
||||
<i class="icon-plus" title="Add Profile"/>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
|
@ -1,10 +1,5 @@
|
|||
<fieldset>
|
||||
<legend>Quality Profiles</legend>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<button class="btn btn-success x-add">Add Profile</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<ul class="quality-profiles"></ul>
|
||||
|
|
|
@ -13,7 +13,16 @@ define(['app',
|
|||
template : 'Settings/Quality/Profile/QualityProfileCollectionTemplate',
|
||||
|
||||
events: {
|
||||
'click .x-add': '_addProfile'
|
||||
'click .x-add-card': '_addProfile'
|
||||
},
|
||||
|
||||
onAfterItemAdded: function () {
|
||||
this.$itemViewContainer.find('.x-add-card').remove();
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Quality/Profile/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
||||
this.$itemViewContainer.append(html);
|
||||
},
|
||||
|
||||
_addProfile: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue