[ARVADOS] updated: 1.1.3-3-g80eedd8

Git user git at public.curoverse.com
Thu Feb 8 21:27:50 EST 2018


Summary of changes:
 apps/workbench/app/assets/javascripts/components/search.js | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

       via  80eedd862b4956ed840af233dce0c3608fe627b2 (commit)
      from  71e1465f6c7aa20a70bf46e56ac20f8b74423d4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 80eedd862b4956ed840af233dce0c3608fe627b2
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Thu Feb 8 23:26:57 2018 -0300

    11454: Replaced javascript events with proper form values
    on the search results form buttons.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/search.js b/apps/workbench/app/assets/javascripts/components/search.js
index f854411..2f37d78 100644
--- a/apps/workbench/app/assets/javascripts/components/search.js
+++ b/apps/workbench/app/assets/javascripts/components/search.js
@@ -57,23 +57,20 @@ window.SearchResultsTable = {
                     // Add the salted token to search result links from federated
                     // remote hosts.
                     if (!session.isFromRails && session.token.indexOf('v2/') == 0) {
-                        tokenParam = '?api_token='+session.token
+                        tokenParam = session.token
                     }
                     return m('tr', [
                         m('td', m('form', {
-                            onsubmit: function() {
-                                return false;
-                            }
+                            action: item.workbenchBaseURL() + '/' + item.objectType.wb_path + '/' + item.uuid,
+                            method: 'GET'
                         }, [
+                            tokenParam !== '' &&
+                                m('input[type=hidden][name=api_token][value='+tokenParam+']'),
                             item.workbenchBaseURL() &&
                                 m('button.btn.btn-xs.btn-default[type=submit]', {
-                                    onclick: m.withAttr('href', function(v) {
-                                        document.location = v;
-                                    }),
                                     'data-original-title': 'show '+item.objectType.description,
                                     'data-placement': 'top',
                                     'data-toggle': 'tooltip',
-                                    href: item.workbenchBaseURL()+'/'+item.objectType.wb_path+'/'+item.uuid+tokenParam,
                                     // Bootstrap's tooltip feature
                                     oncreate: function(vnode) { $(vnode.dom).tooltip() },
                                 }, iconsMap[item.objectType.wb_path]),

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list