mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
rjs -> webpack
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Quality/QualityDefinitionModel'
|
||||
], function (Backbone, QualityDefinitionModel) {
|
||||
return Backbone.Collection.extend({
|
||||
model: QualityDefinitionModel,
|
||||
url : window.NzbDrone.ApiRoot + '/qualitydefinition'
|
||||
});
|
||||
});
|
||||
var Backbone = require('backbone');
|
||||
var QualityDefinitionModel = require('./QualityDefinitionModel');
|
||||
|
||||
module.exports = Backbone.Collection.extend({
|
||||
model : QualityDefinitionModel,
|
||||
url : window.NzbDrone.ApiRoot + '/qualitydefinition'
|
||||
});
|
||||
@@ -1,20 +1,11 @@
|
||||
'use strict';
|
||||
var ModelBase = require('../Settings/SettingsModelBase');
|
||||
|
||||
define(
|
||||
[
|
||||
'Settings/SettingsModelBase'
|
||||
], function (ModelBase) {
|
||||
return ModelBase.extend({
|
||||
|
||||
baseInitialize: ModelBase.prototype.initialize,
|
||||
|
||||
initialize: function () {
|
||||
var name = this.get('quality').name;
|
||||
|
||||
this.successMessage = 'Saved ' + name + ' quality settings';
|
||||
this.errorMessage = 'Couldn\'t save ' + name + ' quality settings';
|
||||
|
||||
this.baseInitialize.call(this);
|
||||
}
|
||||
});
|
||||
});
|
||||
module.exports = ModelBase.extend({
|
||||
baseInitialize : ModelBase.prototype.initialize,
|
||||
initialize : function(){
|
||||
var name = this.get('quality').name;
|
||||
this.successMessage = 'Saved ' + name + ' quality settings';
|
||||
this.errorMessage = 'Couldn\'t save ' + name + ' quality settings';
|
||||
this.baseInitialize.call(this);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user