diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-11 13:07:09 -0600 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-11 13:07:09 -0600 |
| commit | 0bef350be2ea4ea67655e83633c6f8f5b6c04695 (patch) | |
| tree | eb76fbf009b62dd6edf870c6a93ef4b915fdc507 /StoneIsland/www/js | |
| parent | 5680371ea44af2bd576e9b936c9e43ee5ab47376 (diff) | |
fix youtube link!
Diffstat (limited to 'StoneIsland/www/js')
| -rwxr-xr-x | StoneIsland/www/js/lib/auth/SignupView.js | 2 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/PageView.js | 6 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/nav/NavView.js | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index ff5fa6bb..599f57c7 100755 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -64,7 +64,7 @@ var SignupView = FormView.extend({ // if (data.Gender === "NONE") { errors.push([ "Gender", "Please supply your gender." ]) } if (data.DataProfiling !== "true") { errors.push([ "DataProfiling", "You must consent to use this service." ]) } if (data.DataProfiling2 !== "true") { errors.push([ "DataProfiling2", "You must consent to use this service." ]) } - if (! data.YooxLetter) { data.YooxLetter = false } + data.YooxLetter = this.$("[name=YooxLetter]").prop("checked") }, finalize: function(data){ diff --git a/StoneIsland/www/js/lib/blogs/PageView.js b/StoneIsland/www/js/lib/blogs/PageView.js index fab3ff53..c399a2a9 100755 --- a/StoneIsland/www/js/lib/blogs/PageView.js +++ b/StoneIsland/www/js/lib/blogs/PageView.js @@ -1,6 +1,7 @@ var PageView = ScrollableView.extend({ events: { + "touchstart a": "follow_link" }, initialize: function(opt){ @@ -28,5 +29,10 @@ var PageView = ScrollableView.extend({ $(this).attr("target", "_system") }) }, + + follow_link: function(e){ + var href = $(e.currentTarget).attr("href") + window.open(row.link, '_system') + }, })
\ No newline at end of file diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js index 71314559..1c12e7a1 100755 --- a/StoneIsland/www/js/lib/nav/NavView.js +++ b/StoneIsland/www/js/lib/nav/NavView.js @@ -155,6 +155,7 @@ var NavView = View.extend({ window.open("https://twitter.com/stoneisland", '_system') }, yt: function(){ + console.log("youtube") window.open("https://www.youtube.com/user/StoneIslandOfficial", '_system') }, |
