Skip to content

Commit

Permalink
🦄 fix back prev step
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Feb 27, 2017
1 parent e91165a commit 3c038e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/static/admin/js/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
* Created by biezhi on 2017/2/23.
*/
!function ($) {

"use strict";
var tale = new $.tale();

var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi;
var regex = new RegExp(expression);

var FormWizard = function () {
};
//creates form with validation
Expand All @@ -28,6 +33,9 @@
onStepChanging: function (event, currentIndex, newIndex) {
tale.showLoading();
$form_container.validate().settings.ignore = ":disabled,:hidden";
if(currentIndex == 1 && newIndex == 0){
return true;
}
var isValid = $form_container.valid();
if(!isValid){
tale.hideLoading();
Expand Down

0 comments on commit 3c038e6

Please sign in to comment.