summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/js/common.js b/program/js/common.js
index 7ac3dc807..b0dc5564a 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -343,6 +343,13 @@ function find_in_array()
}
+// make a string URL safe
+function urlencode(str)
+{
+ return window.encodeURI ? encodeURI(str).replace(/&/g, '%26') : escape(str);
+}
+
+
// get any type of html objects by id/name
function rcube_find_object(id, d)
{