diff options
Diffstat (limited to 'StoneIsland/www/js/lib/account')
| -rw-r--r-- | StoneIsland/www/js/lib/account/LoginView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/LogoutView.js | 7 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/PaymentView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/ProfileView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/SettingsView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/ShippingView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/SignupView.js | 3 |
7 files changed, 12 insertions, 13 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js index 30a4a735..8c875ae8 100644 --- a/StoneIsland/www/js/lib/account/LoginView.js +++ b/StoneIsland/www/js/lib/account/LoginView.js @@ -1,4 +1,4 @@ -var LoginView = SerializableView.extend({ +var LoginView = FormView.extend({ el: "#login", @@ -12,6 +12,7 @@ var LoginView = SerializableView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#login', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/LogoutView.js b/StoneIsland/www/js/lib/account/LogoutView.js index 71e0bc31..62c925eb 100644 --- a/StoneIsland/www/js/lib/account/LogoutView.js +++ b/StoneIsland/www/js/lib/account/LogoutView.js @@ -9,12 +9,5 @@ var LogoutView = View.extend({ document.body.className = "logout" app.footer.hide() }, - - submit: function(e){ - e.preventDefault() - }, - - success: function(){ - }, })
\ No newline at end of file diff --git a/StoneIsland/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js index 103cbf8f..4d6ccce5 100644 --- a/StoneIsland/www/js/lib/account/PaymentView.js +++ b/StoneIsland/www/js/lib/account/PaymentView.js @@ -1,4 +1,4 @@ -var PaymentView = View.extend({ +var PaymentView = FormView.extend({ el: "#payment", @@ -10,6 +10,7 @@ var PaymentView = View.extend({ this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) this.cc = new CreditCardView ({ parent: this }) + this.scroller = new IScroll('#payment', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js index 892ccbec..6d9a44a3 100644 --- a/StoneIsland/www/js/lib/account/ProfileView.js +++ b/StoneIsland/www/js/lib/account/ProfileView.js @@ -1,4 +1,4 @@ -var ProfileView = View.extend({ +var ProfileView = FormView.extend({ el: "#profile", @@ -8,6 +8,7 @@ var ProfileView = View.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#profile', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/SettingsView.js b/StoneIsland/www/js/lib/account/SettingsView.js index f6b2a992..ba871543 100644 --- a/StoneIsland/www/js/lib/account/SettingsView.js +++ b/StoneIsland/www/js/lib/account/SettingsView.js @@ -1,4 +1,4 @@ -var SettingsView = View.extend({ +var SettingsView = FormView.extend({ el: "#settings", @@ -8,6 +8,7 @@ var SettingsView = View.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#settings', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/ShippingView.js b/StoneIsland/www/js/lib/account/ShippingView.js index 37ba9df9..bc4d24ef 100644 --- a/StoneIsland/www/js/lib/account/ShippingView.js +++ b/StoneIsland/www/js/lib/account/ShippingView.js @@ -1,4 +1,4 @@ -var ShippingView = View.extend({ +var ShippingView = FormView.extend({ el: "#shipping", @@ -9,6 +9,7 @@ var ShippingView = View.extend({ this.$form = this.$("form") this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) + this.scroller = new IScroll('#shipping', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/SignupView.js b/StoneIsland/www/js/lib/account/SignupView.js index 616fd9ea..04600517 100644 --- a/StoneIsland/www/js/lib/account/SignupView.js +++ b/StoneIsland/www/js/lib/account/SignupView.js @@ -1,4 +1,4 @@ -var SignupView = SerializableView.extend({ +var SignupView = FormView.extend({ el: "#signup", @@ -11,6 +11,7 @@ var SignupView = SerializableView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#signup', app.iscroll_options) }, show: function(){ |
