projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added error-handler for x-editable that extracts Arvados API error field for
[arvados.git]
/
apps
/
workbench
/
app
/
assets
/
javascripts
/
editable.js
diff --git
a/apps/workbench/app/assets/javascripts/editable.js
b/apps/workbench/app/assets/javascripts/editable.js
index 0514c1e67ffb7aa789d983eb3c3b09d53530d6d2..16bb7f6cd87e9662d0c8e0774605e4baf1e6310f 100644
(file)
--- a/
apps/workbench/app/assets/javascripts/editable.js
+++ b/
apps/workbench/app/assets/javascripts/editable.js
@@
-57,6
+57,9
@@
$(document).
$(this).editable('option', 'url', response.href);
}
return;
+ },
+ error: function(response, newValue) {
+ return response.responseJSON.errors.join();
}
}).
on('hidden', function(e, reason) {