Fix Properties CL UI issue
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / GlobalPropertiesCtrl.js
index fb81002..cd2f5ed 100644 (file)
@@ -27,6 +27,8 @@ app.controller('GlobalPropertiesCtrl',
                        $scope.$watch('name', function(newValue, oldValue) {
                                var services=asdc_Services
                                setASDCFields()
+                               // add blank service item as the default service, to force user chose the correct service by themselves
+                               $("#service").append("<option></option>")
                                for(k in services){
                                        $("#service").append("<option value="+k+">"+services[k]+"</option>")
                                }