[ARVADOS] updated: 1.1.2-49-gb017ae2

Git user git at public.curoverse.com
Tue Jan 16 14:32:59 EST 2018


Summary of changes:
 apps/workbench/app/assets/javascripts/components/edit_tags.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  b017ae29973838673d66d9f9da4a07f9852d9476 (commit)
      from  824680f81d5c5d243f49096be975568b786fac2a (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 b017ae29973838673d66d9f9da4a07f9852d9476
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Tue Jan 16 14:32:33 2018 -0500

    12479: Fix per-tag strict mode.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/edit_tags.js b/apps/workbench/app/assets/javascripts/components/edit_tags.js
index b11740e..6294bd1 100644
--- a/apps/workbench/app/assets/javascripts/components/edit_tags.js
+++ b/apps/workbench/app/assets/javascripts/components/edit_tags.js
@@ -37,12 +37,14 @@ window.SelectOrAutocomplete = {
             minChars: 0,
             autoFirst: true,
         })
+        vnode.state.create = vnode.attrs.create
+        vnode.state.options = vnode.attrs.options
         // Option is selected from the list.
         $(vnode.dom).on('awesomplete-selectcomplete', function(event) {
             vnode.attrs.value(this.value)
         })
         $(vnode.dom).on('change', function(event) {
-            if (!vnode.attrs.create && !(this.value in vnode.attrs.options)) {
+            if (!vnode.state.create && !(this.value in vnode.state.options)) {
                 this.value = vnode.attrs.value()
             } else {
                 if (vnode.attrs.value() !== this.value) {
@@ -59,6 +61,8 @@ window.SelectOrAutocomplete = {
     },
     onupdate: function(vnode) {
         vnode.state.awesomplete.list = vnode.attrs.options
+        vnode.state.create = vnode.attrs.create
+        vnode.state.options = vnode.attrs.options
     },
 }
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list