diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-16 17:50:55 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-16 17:50:55 +0200 |
commit | 2a84f7f07c58b92b5c2293e0936fd3aec9e8f616 (patch) | |
tree | c83dc53fefb4b21ab5f9c71c4aaafc7ae5829d17 /apps/calendar/templates/part.choosecalendar.php | |
parent | 45d42a96549e8661bb18c5f8d407641d5362240a (diff) | |
download | nextcloud-server-2a84f7f07c58b92b5c2293e0936fd3aec9e8f616.tar.gz nextcloud-server-2a84f7f07c58b92b5c2293e0936fd3aec9e8f616.zip |
Move most javascript to calendar.js
Diffstat (limited to 'apps/calendar/templates/part.choosecalendar.php')
-rw-r--r-- | apps/calendar/templates/part.choosecalendar.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/calendar/templates/part.choosecalendar.php b/apps/calendar/templates/part.choosecalendar.php index c355907c995..0081fb08063 100644 --- a/apps/calendar/templates/part.choosecalendar.php +++ b/apps/calendar/templates/part.choosecalendar.php @@ -17,15 +17,7 @@ for($i = 0; $i < count($option_calendars); $i++){ </tr> <tr> <td colspan="4"> - <p style="margin: 0 auto;width: 90%;"><input style="display:none;width: 90%;float: left;" type="text" id="caldav_url" onmouseover="document.getElementById('caldav_url').select();" title="<?php echo $l->t("CalDav Link"); ?>"><img id="caldav_url_close" style="height: 20px;vertical-align: middle;display: none;" src="../../core/img/actions/delete.svg" alt="close" onclick="document.getElementById('caldav_url').style.display = 'none';document.getElementById('caldav_url_close').style.display = 'none';"/></p> + <p style="margin: 0 auto;width: 90%;"><input style="display:none;width: 90%;float: left;" type="text" id="caldav_url" onmouseover="$('#caldav_url').select();" title="<?php echo $l->t("CalDav Link"); ?>"><img id="caldav_url_close" style="height: 20px;vertical-align: middle;display: none;" src="../../core/img/actions/delete.svg" alt="close" onclick="$('#caldav_url').hide();$('#caldav_url_close').hide();"/></p> </td> </tr> </table> -<script type="text/javascript"> - var totalurl = "<?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/apps/calendar/caldav.php/calendars'; ?>"; - function showcaldavurl(username, calname){ - document.getElementById("caldav_url").value = totalurl + "/" + username + "/" + calname; - document.getElementById("caldav_url").style.display = "block"; - document.getElementById("caldav_url_close").style.display = "block"; - } -</script> |