r1447 - branches/bxe_2_0/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Mon Jan 16 17:11:29 2006
New Revision: 1447

Modified:
   branches/bxe_2_0/js/bxeFunctions.js
Log:
Save & Reload

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Mon Jan 16 17:11:29 2006
@@ -39,11 +39,18 @@
 
 	var td = new mozileTransportDriver(bxe_config.xmlfile_method);
 	td.Docu = this;
-	if (e.additionalInfo ) {
+	if (e.additionalInfo && e.additionalInfo.exit ) {
 		td.Exit = e.additionalInfo.exit;
 	} else {
 		td.Exit = null;
 	}
+	
+	if (e.additionalInfo && e.additionalInfo.reload ) {
+		td.Reload = e.additionalInfo.reload;
+	} else {
+		td.Reload = null;
+	}
+
 	var xml = bxe_getXmlDomDocument(true);
 	if (!xml) {
 		alert(bxe_i18n.getText("You're in Source Mode. Not possible to use this button"));
@@ -67,7 +74,9 @@
 			eval(bxe_config.options['onSaveFileCreated']);
 			
 		}
-
+		if (e.td.Reload) {
+			document.location.reload();
+		}
 		if (e.td.Exit) {
 			eDOMEventCall("Exit",document);
 		}
@@ -1178,7 +1187,10 @@
 	img.setAttribute("align","right");
 	bxe_menubar.node.appendChild(img);
 	var submenu = new Array(bxe_i18n.getText("Save"),function() {eDOMEventCall("DocumentSave",document);});
+	submenu.push(bxe_i18n.getText("Save & Reload"),function() {eDOMEventCall("DocumentSave",document,{"reload": true});});
+	
 	submenu.push(bxe_i18n.getText("Save & Exit"),function() {eDOMEventCall("DocumentSave",document,{"exit": true});});
+	
 	submenu.push(bxe_i18n.getText("Exit"),function() {eDOMEventCall("Exit",document);});
 	bxe_menubar.addMenu(bxe_i18n.getText("File"),submenu);
 
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.