Plugin Directory

Changeset 3186315


Ignore:
Timestamp:
11/12/2024 08:29:42 AM (15 months ago)
Author:
prosolution
Message:

1.9.7

  • UPDATE:
    • fix bug when choose "one pager" from application form > application form steps, the step view of the form was not changing
Location:
prosolution-wp-client/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • prosolution-wp-client/trunk/README.txt

    r3184393 r3186315  
    66Tested up to: 6.5
    77Requires PHP: 7.0
    8 Stable tag: 1.9.6
     8Stable tag: 1.9.7
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== 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
    6871
    6972= 1.9.6 =
  • prosolution-wp-client/trunk/admin/class-prosolwpclient-admin.php

    r3182060 r3186315  
    14851485                            'label'   => esc_html__( '6th Step Label', 'prosolwpclient' ),
    14861486                            'type'    => 'text_app_form',
    1487                             'required' => true,
     1487                            'required' => true, 
    14881488                            'default' => esc_html__( 'Others' , 'prosolwpclient' )
    14891489                        );
  • prosolution-wp-client/trunk/prosolwpclient.php

    r3182060 r3186315  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.9.6
     19     * Version:           1.9.7
    2020     * Author:            ProSolution
    2121     * Author URI:        https://www.prosolution.com
     
    4242
    4343    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');
    4545    defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__));
    4646    defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
  • prosolution-wp-client/trunk/public/js/jquery.formtowizard.js

    r3012337 r3186315  
    5555
    5656
    57             steps.each(function(i) {
     57            steps.each(function(i) { 
    5858                $(this).wrap('<div id="step' + i + '" class="stepDetails"></div>');
    5959                $(this).append('<p id="step' + i + 'commands" class="commands"></p>');
  • prosolution-wp-client/trunk/public/js/prosolwpclientpublic.js

    r3182060 r3186315  
    31023102            return stepIsValid;
    31033103        }
    3104 
    3105         $jobApplyForm.formToWizard({
    3106             submitButton: 'applicationSubmitBtn',
    3107             nextBtnName: prosolObj.next + ' &gt;&gt;',
    3108             prevBtnName: '&lt;&lt; ' + 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 + ' &gt;&gt;',
     3112                prevBtnName: '&lt;&lt; ' + 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   
    31303169                            var xy = $jobApplyFormValidator.element(this);
    3131 
     3170   
    31323171                            if ($(this).hasClass('prosolwpclient-chosen-select')) {
    31333172                                var ID = $(this).next('.chosen-container-single').attr("id");
     
    31383177                                }
    31393178                            }
    3140 
     3179   
    31413180                            stepIsValid = stepIsValid && (typeof xy == 'undefined' || xy);
    3142                             tabIsValid = tabIsValid && (typeof xy == 'undefined' || xy);
    3143 
    31443181                        });
    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);
    31613182                    }
    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       
    31843190    });
    31853191})(jQuery);
Note: See TracChangeset for help on using the changeset viewer.