diff --git a/admin.js b/admin.js index 2a3be8e..2919d38 100644 --- a/admin.js +++ b/admin.js @@ -63,7 +63,8 @@ window.camptix = window.camptix || { models: {}, views: {}, collections: {} }; model: this.model.toJSON(), fields: camptix.collections.segmentFields.toJSON(), ops: selectedField.get( 'ops' ), - type: selectedField.get( 'type' ) + type: selectedField.get( 'type' ), + placeholder: selectedField.get('placeholder') }; if ( data.type == 'select' ) { @@ -130,7 +131,8 @@ window.camptix = window.camptix || { models: {}, views: {}, collections: {} }; caption: '', option_value: '', ops: [ 'is', 'is not' ], - values: [] + values: [], + placeholder: '' } }); diff --git a/camptix.php b/camptix.php index 9fe9aea..089af18 100644 --- a/camptix.php +++ b/camptix.php @@ -3191,7 +3191,7 @@ function menu_tools_notify() { <# }); #> <# } else if ( data.type == 'text' ) { #> - + <# } #> @@ -3226,7 +3226,8 @@ function menu_tools_notify() { caption: 'Purchase date', option_value: 'date', type: 'text', - ops: [ 'before', 'after' ] + ops: [ 'before', 'after' ], + placeholder: 'YYYY-MM-DD', })); get_all_questions() as $question ) : ?>