mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Alert when changes may not been saved
This commit is contained in:
		@@ -1,5 +1,11 @@
 | 
			
		||||
/*global $, ace, Materialize, newCSS, CSS_ID, ADMIN*/
 | 
			
		||||
(function () {
 | 
			
		||||
    $(window).bind('beforeunload', function(){
 | 
			
		||||
        if ($("#live_preview_warning").is(":visible")) {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
    
 | 
			
		||||
    if($("#css_editor").length != 0) {
 | 
			
		||||
        var editor = ace.edit("css_editor");
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user