diff --git a/plugins/dynamix.docker.manager/include/CreateDocker.php b/plugins/dynamix.docker.manager/include/CreateDocker.php
index 0a405a8211..70b3646308 100644
--- a/plugins/dynamix.docker.manager/include/CreateDocker.php
+++ b/plugins/dynamix.docker.manager/include/CreateDocker.php
@@ -709,6 +709,8 @@ function setXmlVal(&$xml, $value, $el, $attr = null, $pos = 0) {
$('.advanced-switch').change(function () {
var status = $(this).is(':checked');
toggleRows('advanced,.hidden', status, 'basic');
+ $("#catSelect").dropdownchecklist("destroy");
+ $("#catSelect").dropdownchecklist({emptyText:'Select categories...', width:300, explicitClose:'...close'});
});
});
@@ -938,7 +940,7 @@ function toggleMode(el) {
var index = $(el)[0].selectedIndex;
if (index == 0) {
// Path
- mode.html("
Mode");
+ mode.html("Mode");
value.bind("click", function(){openFileBrowser(this,$(this).val(), 'sh', true, false);});
} else if (index == 1) {
// Port
@@ -1005,6 +1007,15 @@ function resetField(el) {
target.val(reset);
}
}
+
+ function prepareCategory() {
+ var values = $.map($('#catSelect option') ,function(option) {
+ if ($(option).is(":selected")) {
+ return option.value;
+ }
+ });
+ $("input[name='contCategory']").val(values.join(" "));
+ }
@@ -1112,9 +1123,46 @@ function resetField(el) {
-
+
| Categories: |
- |
+
+
+
+ |
| Support Thread: |
@@ -1352,6 +1400,12 @@ function reloadTriggers() {
}
}
+ // Load the confCategory input into the s1 select
+ categories=$("input[name='contCategory']").val().split(" ");
+ for (var i = 0; i < categories.length; i++) {
+ $("#catSelect option[value='"+categories[i]+"']").prop("selected", true);
+ }
+
// Remove empty description
if (!Settings.Description.length) {
$('#canvas').find('#Overview:first').hide();
@@ -1380,6 +1434,8 @@ function reloadTriggers() {
// Add switchButton
$('.switch-on-off').each(function(){var checked = $(this).is(":checked");$(this).switchButton({labels_placement: "right", checked:checked});});
+ $("#catSelect").dropdownchecklist({emptyText:'Select categories...', width:300, explicitClose:'...close'});
+
});