|
|
@@ -532,13 +532,14 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
|
|
|
<em data-bind="visible: properties.job_properties().length == 0">${ _('No properties defined.') }</em>
|
|
|
|
|
|
<h6>
|
|
|
- <a class="pointer" data-bind="click: function(){ properties.archives.push({'name': ''});$(document).trigger('drawArrows') }">
|
|
|
+ <a class="pointer" data-bind="click: function(){ properties.archives.push(ko.mapping.fromJS({'name': ''})); $(document).trigger('drawArrows') }">
|
|
|
${ _('Archives') } <i class="fa fa-plus"></i>
|
|
|
</a>
|
|
|
</h6>
|
|
|
<ul data-bind="visible: properties.archives().length > 0, foreach: properties.archives" class="unstyled">
|
|
|
<li>
|
|
|
- <input type="text" class="filechooser-input input-xlarge" data-bind="filechooser: name, filechooserOptions: globalFilechooserOptions, value: name, attr: { placeholder: $root.workflow_properties.archives.help_text }"/>
|
|
|
+ <input type="text" class="filechooser-input input-xlarge" data-bind="filechooser: name(), filechooserOptions: globalFilechooserOptions, value: name, attr: { placeholder: $root.workflow_properties.archives.help_text }"/>
|
|
|
+ <span data-bind='template: { name: "common-fs-link", data: { path: name(), with_label: false} }'></span>
|
|
|
<a href="#" data-bind="click: function(){ $parent.properties.archives.remove(this); $(document).trigger('drawArrows') }">
|
|
|
<i class="fa fa-minus"></i>
|
|
|
</a>
|
|
|
@@ -557,7 +558,7 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
|
|
|
</h6>
|
|
|
<ul class="unstyled" data-bind="visible: properties.arguments().length > 0, foreach: properties.arguments">
|
|
|
<li>
|
|
|
- <input type="text" class="span11" data-bind="value: value"/>
|
|
|
+ <input type="text" class="input-medium" data-bind="value: value, attr: { placeholder: $root.workflow_properties.arguments.help_text }"/>
|
|
|
<a href="#" data-bind="click: function(){ $parent.properties.arguments.remove(this); $(document).trigger('drawArrows') }">
|
|
|
<i class="fa fa-minus"></i>
|
|
|
</a>
|
|
|
@@ -586,13 +587,14 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
|
|
|
|
|
|
<script type="text/html" id="common-properties-files">
|
|
|
<h6>
|
|
|
- <a class="pointer" data-bind="click: function(){ properties.files.push({'value': ''}); $(document).trigger('drawArrows') }">
|
|
|
+ <a class="pointer" data-bind="click: function(){ properties.files.push(ko.mapping.fromJS({'value': ''})); $(document).trigger('drawArrows') }">
|
|
|
${ _('Files') } <i class="fa fa-plus"></i>
|
|
|
</a>
|
|
|
</h6>
|
|
|
<ul class="unstyled" data-bind="foreach: properties.files">
|
|
|
<li style="margin-bottom: 3px">
|
|
|
<input type="text" class="filechooser-input" data-bind="filechooser: value, filechooserOptions: globalFilechooserOptions"/>
|
|
|
+ <span data-bind='template: { name: "common-fs-link", data: { path: value(), with_label: false} }'></span>
|
|
|
<a href="#" data-bind="click: function(){ $parent.properties.files.remove(this); $(document).trigger('drawArrows') }">
|
|
|
<i class="fa fa-minus"></i>
|
|
|
</a>
|
|
|
@@ -667,7 +669,7 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
|
|
|
|
|
|
|
|
|
<script type="text/html" id="param-fs-link">
|
|
|
- <!-- ko if: path.split('=', 2)[1] -->
|
|
|
+ <!-- ko if: path.split('=', 2)[1] && path.split('=', 2)[1].charAt(0) == '/' -->
|
|
|
<a data-bind="attr: {href: '/filebrowser/view' + $data.path.split('=', 2)[1] }" target="_blank" title="${ _('Open') }">
|
|
|
<i class="fa fa-external-link-square"></i>
|
|
|
</a>
|