From d5dcb5790ec45f7210dea139d1c6fb3b2992bd9f Mon Sep 17 00:00:00 2001 From: Michael Joseph Panaga Date: Fri, 16 Aug 2019 11:43:45 +0800 Subject: [PATCH] CampTix Tools: Add placeholder in Purchase date field. --- admin.js | 6 ++++-- camptix.php | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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 ) : ?>