Преглед изворни кода

[oozie] Enable filechooser for all the parameters with '='

Enrico Berti пре 11 година
родитељ
комит
6ce7b42
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      apps/oozie/src/oozie/templates/editor/workflow_editor.mako

+ 2 - 2
apps/oozie/src/oozie/templates/editor/workflow_editor.mako

@@ -609,7 +609,7 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
   </h6>
   <ul class="unstyled" data-bind="foreach: properties.parameters">
     <li style="margin-bottom: 3px">
-      <input type="text" class="filechooser-input seventy" data-bind="value: value, filechooser: value, filechooserOptions: globalFilechooserOptions, filechooserDisabled: true, filechooserPrefixSeparator: '=', event: { change: enableFilechooser }, attr: { placeholder: $parent.actionParametersUI }, typeahead: { target: value, source: $parent.actionParameters, sourceSuffix: '=', triggerOnFocus: true }"/>
+      <input type="text" class="filechooser-input seventy" data-bind="value: value, filechooser: value, filechooserOptions: globalFilechooserOptions, filechooserDisabled: true, filechooserPrefixSeparator: '=', event: { change: enableFilechooser, keyup: enableFilechooser }, attr: { placeholder: $parent.actionParametersUI }, typeahead: { target: value, source: $parent.actionParameters, sourceSuffix: '=', triggerOnFocus: true }"/>
       <a href="#" data-bind="click: function(){ $parent.properties.parameters.remove(this); $(document).trigger('drawArrows') }">
         <i class="fa fa-minus"></i>
       </a>
@@ -1791,7 +1791,7 @@ ${ dashboard.import_bindings() }
   }
 
   function enableFilechooser(va, evt) {
-    if ($(evt.target).val().indexOf('input=') == 0 || $(evt.target).val().indexOf('output=') == 0) {
+    if ($(evt.target).val().indexOf('=') > 0) {
       $(evt.target).next().removeAttr('disabled').removeClass('disabled');
     }
     else {