Skip to content

Commit

Permalink
Merge pull request #2194 from variacode/fix-2179
Browse files Browse the repository at this point in the history
fix #2179 - Node filter override breaks jobs with "execute locally"
  • Loading branch information
gschueler committed Nov 21, 2016
2 parents 0382da1 + b9b13ba commit 8250b15
Showing 1 changed file with 8 additions and 3 deletions.
Expand Up @@ -13,7 +13,7 @@
- See the License for the specific language governing permissions and
- limitations under the License.
--}%

<%@ page import="rundeck.User;" %>
<div class="row">
<div class="col-sm-12 ">

Expand Down Expand Up @@ -59,6 +59,7 @@
//setup node filters knockout bindings
var filterParams = loadJsonData('filterParamsJSON');
<g:if test="${scheduledExecution.nodeFilterEditable || nodefilter == ''}">
var nodeSummary = new NodeSummary({baseUrl:appLinks.frameworkNodes});
nodeFilter = new NodeFilters(
appLinks.frameworkAdhoc,
Expand All @@ -73,8 +74,9 @@
nodesTitleSingular: message('Node'),
nodesTitlePlural: message('Node.plural')
}));
ko.applyBindings(nodeFilter, document.getElementById('nodefilterViewArea'));
ko.applyBindings(nodeFilter, document.getElementById('nodefilterViewArea'));
</g:if>
//show selected named filter
nodeFilter.filterName.subscribe(function (val) {
if (val) {
Expand Down Expand Up @@ -143,7 +145,10 @@
${selectedNodes!=null?'checked':''}
id="doReplaceFilters"/>
<g:message code="change.the.target.nodes" />
(<span class="nodeselectcount"><g:enc>${selectedNodes!=null?selectedNodes.size():nodes.size()}</g:enc></span>)</label>
<g:if test="${selectedNodes || nodes}">
(<span class="nodeselectcount"><g:enc>${selectedNodes!=null?selectedNodes.size():nodes.size()}</g:enc></span>)
</g:if>
</label>
</div>

</div>
Expand Down

0 comments on commit 8250b15

Please sign in to comment.