summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/assets/javascripts/ui/site/EditSubscriptionModal.js32
-rwxr-xr-xpublic/assets/stylesheets/app.css60
2 files changed, 75 insertions, 17 deletions
diff --git a/public/assets/javascripts/ui/site/EditSubscriptionModal.js b/public/assets/javascripts/ui/site/EditSubscriptionModal.js
index 8952e42..d5eb9ac 100644
--- a/public/assets/javascripts/ui/site/EditSubscriptionModal.js
+++ b/public/assets/javascripts/ui/site/EditSubscriptionModal.js
@@ -47,22 +47,28 @@ var EditSubscriptionModal = ModalFormView.extend({
basic: 1,
pro: 2,
},
+
+ sync: function(){
+ $.put(this.syncAction, this.didLoad.bind(this))
+ },
loaded: false,
load: function(){
this.reset()
if (this.loaded) { return this.show() }
- $.get(this.action, function(data){
- this.loaded = true
- if (data.subscriber) {
- this.subscriber = data.subscription
- this.plans = data.plans
- }
- else if (data.error) {
- // ...no subscription found
- }
- return this.show()
- }.bind(this))
+ $.get(this.action, this.didLoad.bind(this))
+ },
+ didLoad: function(data){
+ this.loaded = true
+ this.plans = data.plans
+ if (data.subscription) {
+ this.subscriber = data.subscription
+ }
+ else if (data.error) {
+ // ...no subscription found
+ this.subscriber = null
+ }
+ return this.show()
},
show: function(){
@@ -122,20 +128,18 @@ var EditSubscriptionModal = ModalFormView.extend({
type: "put",
data: { _csrf: this.$csrf.val() },
success: function(data){
- window.location.href = "/profile"
}
})
},
destroy: function(){
- var msg = "Are you sure you want to cancel your subscription " + sanitize(this.$name.val()) + "?"
+ var msg = "Are you sure you want to cancel your subscription?"
ConfirmModal.confirm(msg, function(){
$.ajax({
url: this.destroyAction,
type: "delete",
data: { _csrf: this.$csrf.val() },
success: function(data){
- window.location.href = "/profile"
}
})
}.bind(this))
diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css
index 0ce2c5e..5d7199c 100755
--- a/public/assets/stylesheets/app.css
+++ b/public/assets/stylesheets/app.css
@@ -156,7 +156,7 @@ a{
display: none;
border-right:0px!important;
}
-.editProfile, .profileLink {
+.profileLink {
border-right:0px!important;
}
.editing #help-button {
@@ -849,6 +849,7 @@ iframe.embed {
}
+
.projectList.about.gopro {
padding:6% 0;
}
@@ -900,6 +901,57 @@ iframe.embed {
background:black;
color:white;
}
+
+/* PLANS BROCHURE */
+/* nb these styles should be fixed for narrower screens/mobile layout */
+.about_plan {
+ width: 28vw;
+ margin: 2vw;
+ float: left;
+ min-height: 28vw;
+ position: relative;
+}
+.about_plan button {
+ position: absolute;
+ bottom: 5%;
+ left: 5%;
+ width: 90%;
+}
+.about_custom {
+ clear: both;
+ width: 76vw;
+ margin: 2vw 10vw;
+}
+.planbox {
+ padding: 2vw;
+ border: 1px solid #ddd;
+ background: white;
+ border-radius: 25px;
+ font-size: 15px;
+ line-height: 23px;
+ text-align: center;
+}
+.planbox h3 {
+ text-align: center;
+ margin-bottom: 10px;
+}
+.about_plan ul {
+ margin-bottom: 60px;
+}
+.planbox li {
+ list-style-type: none;
+ margin-bottom: 5px;
+}
+.planbox.miscbox {
+ border: 0;
+ background: #f8f8f8;
+}
+.about_custom a {
+ border-bottom: 1px solid;
+}
+
+/* LAYOUTS MODAL */
+
.templates {
overflow: auto;
max-height: 100%;
@@ -918,8 +970,8 @@ iframe.embed {
}
.templates::-webkit-scrollbar-thumb {
-background-color: white;
-border-left: 1px solid black;
+ background-color: white;
+ border-left: 1px solid black;
}
.templates::-webkit-scrollbar-track {
@@ -990,6 +1042,8 @@ border-left: 1px solid black;
float:right;
}
+/* MX SCENE STUFF */
+
.mx-scene {
position:fixed;
top:0;