[pLog-svn] r713 - plog/trunk/js/htmlarea/popups
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Jan 10 12:24:39 GMT 2005
Author: oscar
Date: 2005-01-10 12:24:39 +0000 (Mon, 10 Jan 2005)
New Revision: 713
Modified:
plog/trunk/js/htmlarea/popups/popup.js
Log:
one additional improvement
Modified: plog/trunk/js/htmlarea/popups/popup.js
===================================================================
--- plog/trunk/js/htmlarea/popups/popup.js 2005-01-10 12:21:25 UTC (rev 712)
+++ plog/trunk/js/htmlarea/popups/popup.js 2005-01-10 12:24:39 UTC (rev 713)
@@ -84,7 +84,7 @@
if (span.firstChild && span.firstChild.data) {
//var txt = i18n[span.firstChild.data];
//OSCAR:this doesn't work!!
- if (i18n != null) txt = i18n[span.firstChild.data];
+ var txt = (i18n != null ? i18n[span.firstChild.data] : span.firstChild.data);
if (txt)
span.firstChild.data = txt;
}
@@ -92,8 +92,7 @@
}
//OSCAR: this doesn't work!
//var txt = i18n[document.title];
- var txt;
- if(i18n != null) txt = i18n[document.title];
+ var txt = (i18n != null ? i18n[document.title] : document.title);
if (txt)
document.title = txt;
};
More information about the pLog-svn
mailing list