aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/resources/META-INF/resources/designer/partials/portfolios/holmes_properties.html2
-rw-r--r--src/main/resources/META-INF/resources/designer/partials/portfolios/stringMatch_properties.html4
-rw-r--r--src/main/resources/META-INF/resources/designer/partials/portfolios/tca_properties.html4
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js77
4 files changed, 31 insertions, 56 deletions
diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/holmes_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/holmes_properties.html
index 98c643238..3c7607b93 100644
--- a/src/main/resources/META-INF/resources/designer/partials/portfolios/holmes_properties.html
+++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/holmes_properties.html
@@ -46,7 +46,7 @@
<label for="operationalPolicy" class="col-sm-4 control-label">Operational policy</label>
</div>
<div class="col-sm-8">
- <select class="form-control" id="operationalPolicy" name="operationalPolicy" autofocus="autofocus" required ng-trim="true">
+ <select class="form-control" id="operationalPolicy" name="operationalPolicy" autofocus="autofocus" required ng-trim="true" enableFilter="true">
<option ng-repeat="x in operationalPolicies" value="{{x}}">{{x}}</option>
</select>
</div>
diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/stringMatch_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/stringMatch_properties.html
index 75491185f..018a4535b 100644
--- a/src/main/resources/META-INF/resources/designer/partials/portfolios/stringMatch_properties.html
+++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/stringMatch_properties.html
@@ -227,7 +227,7 @@ label{
<label class="col-sm-4 control-label">Ops Policy:</label>
<div class="col-sm-8">
<select class="form-control" id="policyName" name="policyName"
- autofocus="autofocus" required ng-trim="true">
+ autofocus="autofocus" required ng-trim="true" enableFilter="true">
<option ng-repeat="x in policyNames" value="{{x}}">{{x}}</option>
</select>
</div>
@@ -972,4 +972,4 @@ label{
$(".stringMatchPanel").css("display", "unset");
}
</script>
-</div> \ No newline at end of file
+</div>
diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/tca_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/tca_properties.html
index 3219fe432..7305fd91a 100644
--- a/src/main/resources/META-INF/resources/designer/partials/portfolios/tca_properties.html
+++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/tca_properties.html
@@ -197,7 +197,7 @@
<div class="col-sm-8 form-group">
<label class="col-sm-3"> Policy </label>
<div class="col-sm-9" style="padding:0px;">
- <select name="tcaPol" id="tcaPol" enableFilter="false"></select>
+ <select name="tcaPol" id="tcaPol" enableFilter="true"></select>
</div>
</div>
@@ -620,4 +620,4 @@
});
}
</script>
-</div> \ No newline at end of file
+</div>
diff --git a/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js b/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js
index 97dd42e11..01a39b62d 100644
--- a/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js
+++ b/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js
@@ -113,61 +113,36 @@ function loadPropertyWindow(type) {
function setMultiSelect() {
$("select").each(function(index, mySelect) {
- if ($(mySelect).parents(".multiselect-native-select") &&
- $(mySelect).parents(".multiselect-native-select").length < 1) {
- if (!$(mySelect).attr("multiple")) {
- if ($(mySelect).attr("enableFilter")) {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- maxHeight: 200
- });
- } else {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- enableFiltering: true,
- maxHeight: 200
- });
- }
- } else {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- includeSelectAllOption: true,
- enableFiltering: true,
- maxHeight: 200,
- enableCaseInsensitiveFiltering: true
- });
- }
+ var mySelectObj = $(mySelect);
+ if (! mySelectObj.parents(".multiselect-native-select")) {
+ // keep native for this one
+ return;
+ }
- } else if ($(mySelect).parents(".multiselect-native-select") &&
- $(mySelect).parents(".multiselect-native-select").length > 0) {
- var selectDrop = $(mySelect).parent(".multiselect-native-select").find("select");
- $(mySelect).parent(".multiselect-native-select").parent().html(selectDrop);
- if (!$(mySelect).attr("multiple")) {
- if ($(mySelect).attr("enableFilter")) {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- maxHeight: 200
- });
- } else {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- enableFiltering: true,
- maxHeight: 200
- });
- }
- } else {
- $(mySelect).multiselect({
- numberDisplayed: 1,
- includeSelectAllOption: true,
- enableFiltering: true,
- maxHeight: 200,
- enableCaseInsensitiveFiltering: true
- });
- }
+ if (mySelectObj.parents(".multiselect-native-select").length > 0) {
+ var selectDrop = mySelectObj.parent(".multiselect-native-select").find("select");
+ mySelectObj.parent(".multiselect-native-select").parent().html(selectDrop);
}
+
+ var options = {
+ numberDisplayed: 1,
+ maxHeight: 200
+ };
+
+ if (mySelectObj.attr("multiple")
+ && mySelectObj.attr("multiple") != 'false') {
+ options.includeSelectAllOption = true;
+ }
+
+ if (mySelectObj.attr("enableFilter")
+ && mySelectObj.attr("enableFilter") != 'false') {
+ options.enableCaseInsensitiveFiltering = true;
+ options.enableFiltering = true;
+ }
+
+ mySelectObj.multiselect(options);
});
- //refeshMultiSelect();
}
function loadSharedPropertyByService(onChangeUUID, refresh, callBack) {