Commit 5fe97ed4 authored by Tristan Cavelier's avatar Tristan Cavelier

jslint erp5storage.taskmanagerview.js

parent 181ff94b
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
ERP5Storage.onView.taskmanager.put = function (metadata, options) { ERP5Storage.onView.taskmanager.put = function (metadata, options) {
return getHatoas.call(this, metadata, options). return getHatoas.call(this, metadata, options).
then(function (event) { then(function (event) {
var result = JSON.parse(event.target.responseText), var key, result = JSON.parse(event.target.responseText),
put_action = result._embedded._view._actions.put, put_action = result._embedded._view._actions.put,
renderer_form = result._embedded._view, renderer_form = result._embedded._view,
data = new FormData(); data = new FormData();
...@@ -253,7 +253,6 @@ ...@@ -253,7 +253,6 @@
renderer_form.form_id['default']); renderer_form.form_id['default']);
metadata = toERP5Metadata(metadata); metadata = toERP5Metadata(metadata);
/*jslint forin: true */ /*jslint forin: true */
var key;
for (key in metadata) { for (key in metadata) {
if (hasOwnProperty(metadata, key)) { if (hasOwnProperty(metadata, key)) {
if (key !== "_id") { if (key !== "_id") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment