// Add caption from gallery array.
$(this.caption).update(SlideController.photos[SlideController.photoId][2]);
- try {
- document.title = document.title.replace(SlideController.photos[this.photoId][1],
- SlideController.photos[SlideController.photoId][1]);
- if (parent.frames.horde_main) {
- parent.document.title = document.title;
- }
- } catch (e) {}
+ document.title = document.title.replace(SlideController.photos[this.photoId][1],
+ SlideController.photos[SlideController.photoId][1]);
},
updateLinks: function() {
var params = '?gallery=' + SlideController.galleryId + '&image=' + SlideController.photos[SlideController.photoId][3] + '&page=' + SlideController.photos[SlideController.photoId][4];
redirect: function(url, force)
{
- var ptr = parent.frames.horde_main ? parent : window;
-
- ptr.location.assign(this.addURLParam(url));
+ window.location.assign(this.addURLParam(url));
// Catch browsers that don't redirect on assign().
if (force && !Prototype.Browser.WebKit) {
- (function() { ptr.location.reload(); }).delay(0.5);
+ (function() { window.location.reload(); }).delay(0.5);
}
},
$_SESSION['imp']['maildomain'] = $maildomain;
}
}
-
- if ($prefs->isDirty('compose_popup')) {
- Horde::addInlineScript(array(
- 'if (window.parent.frames.horde_menu) window.parent.frames.horde_menu.location.reload();'
- ));
- }
break;
case 'delmove':
-<script language="JavaScript1.5" type="text/javascript">
-<!--
-var _setHordeTitle = 1;
-try {
- if (document.title && parent.frames.horde_main) parent.document.title = document.title;
-} catch (e) {
-}
-// -->
-</script>
-<script type="text/javascript">
-<!--
-if (typeof(_setHordeTitle) == 'undefined' && document.title && parent.frames.horde_main) parent.document.title = document.title;
-// -->
-</script>
<?php if (isset($GLOBALS['notification'])) $GLOBALS['notification']->notify(array('listeners' => array('audio'))); ?>
</body>
</html>
var titleDiv = $('view_title');
if (titleDiv && titleDiv.firstChild && titleDiv.firstChild.nodeValue) {
- var title = KronolithVar.page_title + titleDiv.firstChild.nodeValue;
- try {
- document.title = title;
- if (parent.frames.horde_main) {
- parent.document.title = title;
- }
- } catch (e) {}
+ document.title = KronolithVar.page_title + titleDiv.firstChild.nodeValue;
}
var viewVars = $('view_vars');