11720: Merge branch 'master' into 11720-govendor
[arvados.git] / apps / workbench / app / assets / javascripts / select_modal.js
index 3b51faad6a8b67c5dde1b174c1f02410e17677b4..17b334eb643438631eb35c3b8ffa31d04d9c2d30 100644 (file)
@@ -99,8 +99,9 @@ $(document).on('click', '.selectable', function() {
                 message = "Request failed.";
             }
             this.modal.find('.modal-error').
-                html('<div class="alert alert-danger">' + message + '</div>').
-                show();
+                html('<div class="alert alert-danger"></div>').
+                show().
+                children().text(message);
         }).
         done(function(data, status, jqxhr) {
             var event_name = this.action_data.success;
@@ -151,7 +152,7 @@ $(document).on('click', '.selectable', function() {
             return false;
         }
         $('<a />').
-            attr('href', $form.attr('data-search-modal')).
+            attr('data-remote-href', $form.attr('data-search-modal')).
             attr('data-remote', 'true').
             attr('data-method', 'GET').
             hide().