diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2022-07-12 16:37:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2022-07-12 16:37:52 +0200 |
| commit | c6fa2d5f07da89d987ce1c57f636cd34457b2d11 (patch) | |
| tree | 3dfff368caf2ffcb15741becb2cd7ba1dfa5e578 /StoneIsland/www/js/lib/account/DestroyAccountView.js | |
| parent | ba87d556784a9c0444ec058b590d567f115c8fd2 (diff) | |
add DestroyAccountView
Diffstat (limited to 'StoneIsland/www/js/lib/account/DestroyAccountView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/account/DestroyAccountView.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/account/DestroyAccountView.js b/StoneIsland/www/js/lib/account/DestroyAccountView.js new file mode 100644 index 00000000..4c92e453 --- /dev/null +++ b/StoneIsland/www/js/lib/account/DestroyAccountView.js @@ -0,0 +1,27 @@ +var DestroyAccountView = View.extend({ + + el: "#destroy_account_view", + + events: { + "click .go_destroy_account": "go_destroy", + }, + + initialize: function(){ + }, + + show: function(){ + document.body.className = "destroy_account_view" + app.footer.hide() + }, + + hide: function(){ + }, + + go_destroy: function(e){ + e.preventDefault() + e.stopPropagation() + app.router.go("account/logout") + window.open("https://www.stoneisland.com/us/customercare/contact-us", '_system') + }, + +}) |
