projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17119: Merge branch 'master' into 17119-add-filter-groups
[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 25d38a9cf6593664e524fb1410a6bdcb08d814bd..939506c2ecc56e18486673af42d913b2ff039a7d 100644
(file)
--- a/
apps/workbench/app/assets/javascripts/editable.js
+++ b/
apps/workbench/app/assets/javascripts/editable.js
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
$.fn.editable.defaults.ajaxOptions = {type: 'post', dataType: 'json'};
$.fn.editable.defaults.send = 'always';
$.fn.editable.defaults.ajaxOptions = {type: 'post', dataType: 'json'};
$.fn.editable.defaults.send = 'always';
@@
-58,7
+62,7
@@
$(document).
if ($(this).attr('data-name')) {
var textileAttr = $(this).attr('data-name') + 'Textile';
if (response[textileAttr]) {
if ($(this).attr('data-name')) {
var textileAttr = $(this).attr('data-name') + 'Textile';
if (response[textileAttr]) {
- $(this).
html(
response[textileAttr]);
+ $(this).
attr('data-textile',
response[textileAttr]);
}
}
return;
}
}
return;
@@
-81,6
+85,10
@@
$(document).
// information if it appears elsewhere on the page.
if (reason != 'save') return;
var html = $(this).html();
// information if it appears elsewhere on the page.
if (reason != 'save') return;
var html = $(this).html();
+ if( $(this).attr('data-textile') ) {
+ html = $(this).attr('data-textile');
+ $(this).html(html);
+ }
var uuid = $(this).attr('data-object-uuid');
var attr = $(this).attr('data-name');
var edited = this;
var uuid = $(this).attr('data-object-uuid');
var attr = $(this).attr('data-name');
var edited = this;