mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Fix bug where it would alert warning when saving custom css
This commit is contained in:
		@@ -99,6 +99,7 @@
 | 
				
			|||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					        $("#live_preview_warning").hide();
 | 
				
			||||||
        var formPost = postForm();
 | 
					        var formPost = postForm();
 | 
				
			||||||
        formPost.done(function (data) {
 | 
					        formPost.done(function (data) {
 | 
				
			||||||
            if (newCSS) {
 | 
					            if (newCSS) {
 | 
				
			||||||
@@ -111,6 +112,7 @@
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
        formPost.fail(function () {
 | 
					        formPost.fail(function () {
 | 
				
			||||||
            Materialize.toast('Oh no! Something has failed posting your CSS!', 10000);
 | 
					            Materialize.toast('Oh no! Something has failed posting your CSS!', 10000);
 | 
				
			||||||
 | 
					            $("#live_preview_warning").show();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user