Angus McLeod před 6 roky
rodič
revize
e005eac934

+ 2 - 2
assets/javascripts/wizard/initializers/custom.js.es6

@@ -172,7 +172,7 @@ export default {
       }.property('field.type', 'field.id')
     });
 
-    const StandardFields = ['text', 'textarea', 'dropdown', 'image', 'checkbox', 'user-selector', 'text-only', 'composer'];
+    const StandardFieldValidation = ['text', 'textarea', 'dropdown', 'image', 'checkbox', 'user-selector', 'text-only', 'composer'];
 
     FieldModel.reopen({
       hasCustomCheck: false,
@@ -197,7 +197,7 @@ export default {
           const type = this.get('type');
           if (type === 'checkbox') {
             valid = val;
-          } else if (StandardFields.indexOf(type) > -1) {
+          } else if (StandardFieldValidation.indexOf(type) > -1) {
             valid = val && val.length > 0;
           }
         }

+ 5 - 3
assets/stylesheets/wizard/wizard_custom.scss

@@ -217,10 +217,12 @@
     margin: 0.5em 0;
   }
 
-  .combo-box ul {
-    padding: 0;
+  .combo-box {
+    ul {
+      padding: 0;
+    }
 
-    li p {
+    p {
       margin: 0;
     }
   }