Merge branch '2042-new-collection-from-selected-files'
[arvados.git] / apps / workbench / app / assets / javascripts / editable.js
index adb49d7c15b6628d56729821e618ef534f1b18ba..e37b9444c1615bfd10ce760fa3934f0ab7e76c0d 100644 (file)
@@ -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
+}