add fi locale from babelzilla
This commit is contained in:
		
							parent
							
								
									9270dc1596
								
							
						
					
					
						commit
						a3a5740ea8
					
				
							
								
								
									
										11
									
								
								edit.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								edit.js
									
									
									
									
									
								
							| 
						 | 
					@ -212,11 +212,12 @@ function getMeta(e) {
 | 
				
			||||||
	return meta;
 | 
						return meta;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function saveComplete(id) {
 | 
					function saveComplete(style) {
 | 
				
			||||||
 | 
						dirty = false;
 | 
				
			||||||
	// Go from new style URL to edit style URL
 | 
						// Go from new style URL to edit style URL
 | 
				
			||||||
	if (location.href.indexOf("id=") == -1) {
 | 
						if (location.href.indexOf("id=") == -1) {
 | 
				
			||||||
		// give the code above a moment before we kill the page
 | 
							// give the code above a moment before we kill the page
 | 
				
			||||||
		setTimeout(function() {location.href = "edit.html?id=" + id;}, 200);
 | 
							setTimeout(function() {location.href = "edit.html?id=" + style.id;}, 200);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		initTitle(document.getElementById("name").value);
 | 
							initTitle(document.getElementById("name").value);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -260,8 +261,10 @@ chrome.extension.onMessage.addListener(function(request, sender, sendResponse) {
 | 
				
			||||||
	var installed = document.getElementById("installed");
 | 
						var installed = document.getElementById("installed");
 | 
				
			||||||
	switch(request.name) {
 | 
						switch(request.name) {
 | 
				
			||||||
		case "styleUpdated":
 | 
							case "styleUpdated":
 | 
				
			||||||
			initWithStyle(request.style);
 | 
								if (styleId == request.id) {
 | 
				
			||||||
			dirty = false;
 | 
									initWithStyle(request.style);
 | 
				
			||||||
 | 
									dirty = false;
 | 
				
			||||||
 | 
								} 
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		case "styleDeleted":
 | 
							case "styleDeleted":
 | 
				
			||||||
			if (styleId == request.id) {
 | 
								if (styleId == request.id) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user