summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-10-26 04:11:12 +0200
committerJules Laplace <julescarbon@gmail.com>2017-10-26 04:11:12 +0200
commit2dc213bc3e581fe324d2a2ede320f9a5d5db68c0 (patch)
tree388afa203b7c310330d3749a6ae93acf9f23dab0 /StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
parent70f3af46c5071866eac85b39c59cda6ebdd09ef7 (diff)
deploy 0.9.2
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js')
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js b/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
deleted file mode 100755
index 90ace549..00000000
--- a/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var SettingsView = FormView.extend({
-
- el: "#settings",
-
- events: {
- "change [name=store]": "changeStore",
- "change [name=hub]": "changeHub",
- },
-
- initialize: function(){
- this.$form = this.$(".form")
- this.$msg = this.$(".msg")
- this.$store = this.$("[name=store]")
- this.$hub = this.$("[name=hub]")
- this.scroller = new IScroll('#settings', app.iscroll_options)
- },
-
- show: function(){
- if (! auth.logged_in()) { return app.router.go("intro") }
- if (! navigator.onLine) {
- app.closed.showElement()
- app.closed.setMessage("PLEASE GO ONLINE TO CHANGE<br>YOUR NOTIFICATION SETTINGS.", "")
- return
- }
- document.body.className = "settings"
- this.deferScrollToTop()
-
- this.$store.prop("checked", !! push.settings.store)
- this.$hub.prop("checked", !! push.settings.hub)
- // push.subscribe("store")
- // push.subscribe("hub")
- },
-
- changeStore: function(){
- var state = app.settings.$store.prop("checked")
- if (state) { push.subscribe("store") }
- else { push.unsubscribe('store') }
- },
- changeHub: function(){
- var state = app.settings.$hub.prop("checked")
- if (state) { push.subscribe("hub") }
- else { push.unsubscribe('hub') }
- },
-
-}) \ No newline at end of file