Monotone-Parent: 11701b15db10c26f527b23aa39f6d4ba7256523d

Monotone-Revision: 58a952b10d4574c10176dc598afd887a5e7d2ad2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-23T21:37:53
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-23 21:37:53 +00:00
parent be4b5bbb2a
commit 1f2533e6ed
2 changed files with 46 additions and 16 deletions
+23 -2
View File
@@ -32,7 +32,7 @@ function newEvent(sender, type) {
+ "&hm=" + hour);
window.open(urlstr, "",
"width=570,height=200,resizable=0,scrollbars=0,toolbar=0," +
"width=620,height=600,resizable=0,scrollbars=0,toolbar=0," +
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
return false; /* stop following the link */
@@ -47,7 +47,7 @@ function _editEventId(id, owner) {
var urlstr = urlBase + id + "/edit";
var win = window.open(urlstr, "SOGo_edit_" + id,
"width=570,height=200,resizable=0,scrollbars=0,toolbar=0," +
"width=620,height=600,resizable=0,scrollbars=0,toolbar=0," +
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
win.focus();
}
@@ -863,3 +863,24 @@ function onChangeCalendar(list) {
= list.childNodesWithTag("option")[list.value].innerHTML;
form.setAttribute("action", urlElems.join("/"));
}
function validateBrowseURL(input) {
var button = $("browseUrlBtn");
if (input.value.length) {
if (!button.enabled)
enableAnchor(button);
} else if (!button.disabled)
disableAnchor(button);
}
function browseUrl(anchor, event) {
if (event.button == 0) {
var input = $("url");
var url = input.value;
if (url.length)
window.open(url, '_blank');
}
return false;
}