mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 02:06:25 +00:00
26 lines
524 B
JavaScript
26 lines
524 B
JavaScript
'use strict';
|
|
|
|
const Mn = require('backbone.marionette');
|
|
const App = require('../../main');
|
|
const template = require('./item.ejs');
|
|
|
|
module.exports = Mn.View.extend({
|
|
template: template,
|
|
tagName: 'tr',
|
|
|
|
ui: {
|
|
edit: 'a.edit'
|
|
},
|
|
|
|
events: {
|
|
'click @ui.edit': function (e) {
|
|
e.preventDefault();
|
|
App.Controller.showSettingForm(this.model);
|
|
}
|
|
},
|
|
|
|
initialize: function () {
|
|
this.listenTo(this.model, 'change', this.render);
|
|
}
|
|
});
|