Quality Profiles move to cards

This commit is contained in:
Mark McDowall 2013-06-24 17:41:32 -07:00
parent f8fee8e3d0
commit a3a1cf26ee
10 changed files with 119 additions and 37 deletions

View file

@ -6,34 +6,34 @@ define(
'marionette',
'Settings/Quality/Profile/EditQualityProfileView',
'Settings/Quality/Profile/DeleteView',
'Mixins/AsModelBoundView'
'Mixins/AsModelBoundView',
'Settings/Quality/Profile/AllowedLabeler'
], function (App, Marionette, EditProfileView, DeleteProfileView, AsModelBoundView) {
var view = Marionette.ItemView.extend({
template: 'Settings/Quality/Profile/QualityProfileTemplate',
tagName : 'tr',
tagName : 'li',
ui: {
'progressbar': '.progress .bar'
},
events: {
'click .x-edit' : 'edit',
'click .x-remove': 'removeQuality'
'click .x-edit' : '_editProfile',
'click .x-delete': '_deleteProfile'
},
edit: function () {
_editProfile: function () {
var view = new EditProfileView({ model: this.model});
App.modalRegion.show(view);
},
removeQuality: function () {
_deleteProfile: function () {
var view = new DeleteProfileView({ model: this.model });
App.modalRegion.show(view);
}
});
return AsModelBoundView.call(view);
});