@@ -117,24 +117,24 @@ block content
117117
118118 // add endpoint for visibility
119119 if user .plan == ' plus'
120- label.fw ( for ='title' style ="font-size:20px " ) Visibility
120+ label.fw ( for ='title' style ="font-size:22px " ) Visibility
121121 br
122122 div.radio-buttons.visibility
123- label.fw.radio-inline ( style ="font-size:15px ;" )
123+ label.fw.radio-inline ( style ="font-size:17px ;" )
124124 input.radio-button ( type ='radio' , name ='visibility' value ="public" checked )
125125 | Public
126- label.fw.radio-inline ( style ="font-size:15px ;" )
126+ label.fw.radio-inline ( style ="font-size:17px ;" )
127127 input.radio-button ( type ='radio' , name ='visibility' value ="unlisted" )
128128 | Unlisted
129- label.fw.radio-inline ( style ="font-size:15px ;" )
129+ label.fw.radio-inline ( style ="font-size:17px ;" )
130130 input.radio-button ( type ='radio' , name ='visibility' value ="private" )
131131 | Private
132132 br
133133
134134 div( style ="margin:0 auto;text-align:center;margin-bottom:11px;" )
135135 h4.fw ( style ="margin-bottom:3px;font-size:17px;" ) (Optional)
136136 label.fw ( for ='title' style ="font-size:20px" ) Select A Thumbnail
137- input.btn.btn-primary.center-block.text-center.upload-thumbnail-input ( data-max-size ="500000000" type ="file" id ="filetoupload" name ="filetoupload" accept ="image/*" )
137+ input.btn.btn-primary.center-block.text-center.upload-thumbnail-input ( data-max-size ="500000000" type ="file" id ="filetoupload" name ="filetoupload" accept ="image/*" style = "width:211px;border-radius:6px;" )
138138 br
139139
140140 label.fw ( for ='title' style ="font-size:20px" ) Select A Category
@@ -425,6 +425,7 @@ block content
425425 });
426426
427427
428+ // when receiving a success response from the backend
428429 r .on (' fileSuccess' , function (file , response ) {
429430
430431 console .log (' message:' )
@@ -448,6 +449,7 @@ block content
448449 })
449450 }
450451
452+ // TODO: add a post here to add a thumbnail
451453 if (response .url ) {
452454 window .location .href = response .url ;
453455 }
@@ -458,6 +460,7 @@ block content
458460 });
459461
460462
463+ // if receiving an error from the backend
461464 r .on (' fileError' , function (file , response ) {
462465
463466 response = JSON .parse (response);
0 commit comments