aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/views/submit.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/views/submit.js')
-rw-r--r--src/js/views/submit.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/js/views/submit.js b/src/js/views/submit.js
index c3b8879..5a45de2 100644
--- a/src/js/views/submit.js
+++ b/src/js/views/submit.js
@@ -140,10 +140,23 @@
});
})(FMS, Backbone, _, $);
+(function (FMS, Backbone, _, $) {
+ _.extend( FMS, {
+ SubmitInitialPageView: FMS.SubmitView.extend({
+ onClickButtonPrev: function() {
+ if ( this.model.get('hasExtras') == 1 ) {
+ this.navigate( 'details_extra', true );
+ } else {
+ this.navigate( 'details', true );
+ }
+ }
+ })
+ });
+})(FMS, Backbone, _, $);
(function (FMS, Backbone, _, $) {
_.extend( FMS, {
- SubmitEmailView: FMS.SubmitView.extend({
+ SubmitEmailView: FMS.SubmitInitialPageView.extend({
template: 'submit_email',
id: 'submit-email-page',
prev: 'details',
@@ -380,7 +393,7 @@
(function (FMS, Backbone, _, $) {
_.extend( FMS, {
- SubmitConfirmView: FMS.SubmitView.extend({
+ SubmitConfirmView: FMS.SubmitInitialPageView.extend({
template: 'submit_confirm',
id: 'submit-confirm-page',
prev: 'details',