Revision b9de9e7b

View differences:

src/sunstone/public/app/utils/form-panels/form-panel.js
44 44
      this.advancedElement = $(that.htmlAdvanced()).appendTo( $(".advancedForms", context) );
45 45
    }
46 46

  
47
    context.off('invalid.fndtn.abide', '#' + that.formPanelId + 'Wizard');
48
    context.off('valid.fndtn.abide', '#' + that.formPanelId + 'Wizard');
49
    context.on('invalid.fndtn.abide', '#' + that.formPanelId + 'Wizard', function(e) {
50
      Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
51
      Sunstone.hideFormPanelLoading(that.tabId);
52
    }).on('valid.fndtn.abide', '#' + that.formPanelId + 'Wizard', function(e) {
53
      that.submitWizard(this);
54
      return false;
55
    });
56

  
57
    context.off('invalid.fndtn.abide', '#' + that.formPanelId + 'Advanced');
58
    context.off('valid.fndtn.abide', '#' + that.formPanelId + 'Advanced');
59
    context.on('invalid.fndtn.abide', '#' + that.formPanelId + 'Advanced', function(e) {
60
      Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
61
      Sunstone.hideFormPanelLoading(that.tabId);
62
    }).on('valid.fndtn.abide', '#' + that.formPanelId + 'Advanced', function(e) {
63
      that.submitAdvanced(this);
64
      return false;
65
    });
66

  
67
    context.foundation('abide', 'reflow');
47
    //context.foundation('abide');
48
    Foundation.reflow(context, 'abide');
49

  
50
    $('#' + that.formPanelId + 'Wizard', context)
51
      .on('forminvalid.zf.abide', function(ev, frm) {
52
        Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
53
        Sunstone.hideFormPanelLoading(that.tabId);
54
      })
55
      .on('formvalid.zf.abide', function(ev, frm) {
56
        that.submitWizard(this);
57
        return false;
58
      })
59
      .on("submit", function(ev) {
60
        ev.preventDefault();
61
      });
62

  
63
    $('#' + that.formPanelId + 'Advanced', context)
64
      .on('forminvalid.zf.abide', function(ev, frm) {
65
        Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
66
        Sunstone.hideFormPanelLoading(that.tabId);
67
      })
68
      .on('formvalid.zf.abide', function(ev, frm) {
69
        that.submitAdvanced(this);
70
        return false;
71
      })
72
      .on("submit", function(ev) {
73
        ev.preventDefault();
74
      });
68 75

  
69 76
    that.setup(context);
70 77
  }

Also available in: Unified diff