Skip to content

Commit

Permalink
nginx: adjustments for core changes (opnsense#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfrz authored Nov 16, 2018
1 parent 0ac0d11 commit 7e0a92e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion www/nginx/src/opnsense/www/js/nginx/dist/configuration.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down

0 comments on commit 7e0a92e

Please sign in to comment.