X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a2107d5fc7982769c2d667e51656a6e2529d9bc9..c912d9d8d9e2a055a53967c5b01242c321dfbeb6:/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 adb49d7c15..e37b9444c1 100644 --- a/apps/workbench/app/assets/javascripts/editable.js +++ b/apps/workbench/app/assets/javascripts/editable.js @@ -1,6 +1,14 @@ $.fn.editable.defaults.ajaxOptions = {type: 'put', dataType: 'json'}; $.fn.editable.defaults.send = 'always'; + +// Default for editing is popup. I experimented with inline which is a little +// nicer in that it shows up right under the mouse instead of nearby. However, +// the inline box is taller than the regular content, which causes the page +// layout to shift unless we make the table rows tall, which leaves a lot of +// wasted space when not editing. Also inline can get cut off if the page is +// too narrow, when the popup box will just move to do the right thing. //$.fn.editable.defaults.mode = 'inline'; + $.fn.editable.defaults.params = function (params) { var a = {}; var key = params.pk.key; @@ -14,4 +22,4 @@ $.fn.editable.defaults.validate = function (value) { if (value == "***invalid***") { return "Invalid selection"; } -} \ No newline at end of file +}