From c6fa2d5f07da89d987ce1c57f636cd34457b2d11 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Jul 2022 16:37:52 +0200 Subject: add DestroyAccountView --- .../www/js/lib/account/DestroyAccountView.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 StoneIsland/www/js/lib/account/DestroyAccountView.js (limited to 'StoneIsland/www/js/lib/account/DestroyAccountView.js') 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') + }, + +}) -- cgit v1.2.3-70-g09d2