Changeset 3186315
- Timestamp:
- 11/12/2024 08:29:42 AM (15 months ago)
- Location:
- prosolution-wp-client/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/class-prosolwpclient-admin.php (modified) (1 diff)
-
prosolwpclient.php (modified) (2 diffs)
-
public/js/jquery.formtowizard.js (modified) (1 diff)
-
public/js/prosolwpclientpublic.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prosolution-wp-client/trunk/README.txt
r3184393 r3186315 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.0 8 Stable tag: 1.9. 68 Stable tag: 1.9.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 = 1.9.7 = 69 * UPDATE: 70 - fix bug when choose "one pager" from application form > application form steps, the step view of the form was not changing 68 71 69 72 = 1.9.6 = -
prosolution-wp-client/trunk/admin/class-prosolwpclient-admin.php
r3182060 r3186315 1485 1485 'label' => esc_html__( '6th Step Label', 'prosolwpclient' ), 1486 1486 'type' => 'text_app_form', 1487 'required' => true, 1487 'required' => true, 1488 1488 'default' => esc_html__( 'Others' , 'prosolwpclient' ) 1489 1489 ); -
prosolution-wp-client/trunk/prosolwpclient.php
r3182060 r3186315 17 17 * Plugin URI: https://prosolution.com/produkte-und-services/workexpert.html 18 18 * Description: WordPress client for ProSolution 19 * Version: 1.9. 619 * Version: 1.9.7 20 20 * Author: ProSolution 21 21 * Author URI: https://www.prosolution.com … … 42 42 43 43 defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient'); 44 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.9. 6');44 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.9.7'); 45 45 defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__)); 46 46 defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__)); -
prosolution-wp-client/trunk/public/js/jquery.formtowizard.js
r3012337 r3186315 55 55 56 56 57 steps.each(function(i) { 57 steps.each(function(i) { 58 58 $(this).wrap('<div id="step' + i + '" class="stepDetails"></div>'); 59 59 $(this).append('<p id="step' + i + 'commands" class="commands"></p>'); -
prosolution-wp-client/trunk/public/js/prosolwpclientpublic.js
r3182060 r3186315 3102 3102 return stepIsValid; 3103 3103 } 3104 3105 $jobApplyForm.formToWizard({ 3106 submitButton: 'applicationSubmitBtn', 3107 nextBtnName: prosolObj.next + ' >>', 3108 prevBtnName: '<< ' + prosolObj.prev, 3109 stepStr: prosolObj.stepstr, 3110 nextBtnClass: 'btn btn-primary btnprosoldes-step next wizard-next-btn', 3111 prevBtnClass: 'btn btn-default btnprosoldes-step prev wizard-prev-btn', 3112 buttonTag: 'button', 3113 showProgress: true, 3114 showStepNo: true, 3115 validateBeforeNext: function(form, step) { 3116 3117 var stepIsValid = true; 3118 var tabErrorMsgs = ''; 3119 var tabErrorMsg = prosolObj.invalid_tab_count_msg; 3120 3121 if (step.selector == '#step1' || step.selector == '#step2') { 3122 var step_nav_tabs = step.find('.nav-tabs'); 3123 3124 step.find('.tab-pane').each(function(tab_index, tab_container) { 3125 3126 var tabIsValid = true; //reset tab status 3127 3128 $(':input', tab_container).each(function(index) { 3129 3104 3105 //update one pager view jira-480 3106 const viewPageStyle = $('.one-pager'); 3107 3108 if(viewPageStyle.val() == '1'){ 3109 $jobApplyForm.formToWizard({ 3110 submitButton: 'applicationSubmitBtn', 3111 nextBtnName: prosolObj.next + ' >>', 3112 prevBtnName: '<< ' + prosolObj.prev, 3113 stepStr: prosolObj.stepstr, 3114 nextBtnClass: 'btn btn-primary btnprosoldes-step next wizard-next-btn', 3115 prevBtnClass: 'btn btn-default btnprosoldes-step prev wizard-prev-btn', 3116 buttonTag: 'button', 3117 showProgress: true, 3118 showStepNo: true, 3119 validateBeforeNext: function(form, step) { 3120 3121 var stepIsValid = true; 3122 var tabErrorMsgs = ''; 3123 var tabErrorMsg = prosolObj.invalid_tab_count_msg; 3124 3125 if (step.selector == '#step1' || step.selector == '#step2') { 3126 var step_nav_tabs = step.find('.nav-tabs'); 3127 3128 step.find('.tab-pane').each(function(tab_index, tab_container) { 3129 3130 var tabIsValid = true; //reset tab status 3131 3132 $(':input', tab_container).each(function(index) { 3133 3134 var xy = $jobApplyFormValidator.element(this); 3135 3136 if ($(this).hasClass('prosolwpclient-chosen-select')) { 3137 var ID = $(this).next('.chosen-container-single').attr("id"); 3138 if (!$(this).valid()) { 3139 $('#' + ID + " a").addClass("input-validation-error"); 3140 } else { 3141 $('#' + ID + " a").removeClass("input-validation-error"); 3142 } 3143 } 3144 3145 stepIsValid = stepIsValid && (typeof xy == 'undefined' || xy); 3146 tabIsValid = tabIsValid && (typeof xy == 'undefined' || xy); 3147 3148 }); 3149 3150 var currentTab = step_nav_tabs.find('li:eq(' + tab_index + ')'); 3151 if (tabIsValid == false) { 3152 currentTab.addClass('error-tab'); 3153 var tabTitle = currentTab.find('a').text(); 3154 tabErrorMsgs += tabErrorMsg + ' ' + tabTitle; 3155 tabErrorMsgs += '\n'; 3156 } else { 3157 currentTab.removeClass('error-tab'); 3158 } 3159 3160 3161 }); 3162 3163 if ((step.selector == '#step1' || step.selector == '#step2') && stepIsValid == false) { 3164 alert(tabErrorMsgs); 3165 } 3166 } else { 3167 $(':input', step).each(function(index) { 3168 3130 3169 var xy = $jobApplyFormValidator.element(this); 3131 3170 3132 3171 if ($(this).hasClass('prosolwpclient-chosen-select')) { 3133 3172 var ID = $(this).next('.chosen-container-single').attr("id"); … … 3138 3177 } 3139 3178 } 3140 3179 3141 3180 stepIsValid = stepIsValid && (typeof xy == 'undefined' || xy); 3142 tabIsValid = tabIsValid && (typeof xy == 'undefined' || xy);3143 3144 3181 }); 3145 3146 var currentTab = step_nav_tabs.find('li:eq(' + tab_index + ')');3147 if (tabIsValid == false) {3148 currentTab.addClass('error-tab');3149 var tabTitle = currentTab.find('a').text();3150 tabErrorMsgs += tabErrorMsg + ' ' + tabTitle;3151 tabErrorMsgs += '\n';3152 } else {3153 currentTab.removeClass('error-tab');3154 }3155 3156 3157 });3158 3159 if ((step.selector == '#step1' || step.selector == '#step2') && stepIsValid == false) {3160 alert(tabErrorMsgs);3161 3182 } 3162 } else { 3163 $(':input', step).each(function(index) { 3164 3165 var xy = $jobApplyFormValidator.element(this); 3166 3167 if ($(this).hasClass('prosolwpclient-chosen-select')) { 3168 var ID = $(this).next('.chosen-container-single').attr("id"); 3169 if (!$(this).valid()) { 3170 $('#' + ID + " a").addClass("input-validation-error"); 3171 } else { 3172 $('#' + ID + " a").removeClass("input-validation-error"); 3173 } 3174 } 3175 3176 stepIsValid = stepIsValid && (typeof xy == 'undefined' || xy); 3177 }); 3178 } 3179 3180 return stepIsValid; 3181 }, 3182 3183 }); 3183 3184 return stepIsValid; 3185 }, 3186 3187 }); 3188 } 3189 3184 3190 }); 3185 3191 })(jQuery);
Note: See TracChangeset
for help on using the changeset viewer.