mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
Monotone-Parent: c63be943c6ed8307cd0bd6059b5dd4d20e644c15
Monotone-Revision: 14af1c089766685ea8ad6be31a8ef96d384e1ab2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-31T17:04:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
content = [NSMutableString string];
|
||||
superContent = [[super flatContentAsString] stringByEscapingHTMLString];
|
||||
[content appendString: [superContent stringByDetectingURLs]];
|
||||
[content replaceString: @"\r\n" withString: @"<br />"];
|
||||
[content replaceString: @"\n" withString: @"<br />"];
|
||||
|
||||
return content;
|
||||
}
|
||||
|
||||
@@ -445,44 +445,6 @@ function generateQueryString(queryDict) {
|
||||
return s;
|
||||
}
|
||||
|
||||
function getQueryParaArray(s) {
|
||||
if (s.charAt(0) == "?") s = s.substr(1, s.length - 1);
|
||||
return s.split("&");
|
||||
}
|
||||
|
||||
function getQueryParaValue(s, name) {
|
||||
var t;
|
||||
|
||||
t = getQueryParaArray(s);
|
||||
for (var i = 0; i < t.length; i++) {
|
||||
var s = t[i];
|
||||
|
||||
if (s.indexOf(name) != 0)
|
||||
continue;
|
||||
|
||||
s = s.substr(name.length, s.length - name.length);
|
||||
return decodeURIComponent(s);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* opener callback */
|
||||
|
||||
function triggerOpenerCallback() {
|
||||
/* this code has some issue if the folder has no proper trailing slash! */
|
||||
if (window.opener && !window.opener.closed) {
|
||||
var t, cburl;
|
||||
|
||||
t = getQueryParaValue(window.location.search, "openerurl=");
|
||||
cburl = window.opener.location.href;
|
||||
if (cburl[cburl.length - 1] != "/") {
|
||||
cburl = cburl.substr(0, cburl.lastIndexOf("/") + 1);
|
||||
}
|
||||
cburl = cburl + t;
|
||||
window.opener.location.href = cburl;
|
||||
}
|
||||
}
|
||||
|
||||
/* selection mechanism */
|
||||
|
||||
function deselectAll(parent) {
|
||||
|
||||
Reference in New Issue
Block a user