mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
nginx: adjustments for core changes (#986)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -41,7 +41,7 @@ export default Backbone.View.extend({
|
||||
</div>`));
|
||||
},
|
||||
update: function () {
|
||||
this.dataField.val(JSON.stringify(this.collection.toJSON()));
|
||||
this.dataField.data('data', this.collection.toJSON());
|
||||
},
|
||||
addEntry: function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -6,7 +6,7 @@ export default Backbone.Collection.extend({
|
||||
});
|
||||
},
|
||||
regenerateFromView: function () {
|
||||
let data = JSON.parse($('#ipacl\\.data').val());
|
||||
let data = $('#ipacl\\.data').data('data');
|
||||
if (!_.isArray(data)) {
|
||||
data = [];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export default Backbone.Collection.extend({
|
||||
});
|
||||
},
|
||||
regenerateFromView: function () {
|
||||
let data = JSON.parse($('#snihostname\\.data').val());
|
||||
let data = $('#snihostname\\.data').data('data');
|
||||
if (!_.isArray(data)) {
|
||||
data = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user