Remove frameset left-overs.
authorJan Schneider <jan@horde.org>
Tue, 17 Aug 2010 08:48:36 +0000 (10:48 +0200)
committerJan Schneider <jan@horde.org>
Tue, 17 Aug 2010 14:51:26 +0000 (16:51 +0200)
ansel/js/slideshow.js
imp/js/dimpcore.js
imp/lib/Prefs/Ui.php
kastalia/templates/common-footer.inc
kronolith/js/views.js

index be877bd..b09304e 100644 (file)
@@ -123,13 +123,8 @@ Slide.prototype = {
         // 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];
index 0659537..3c4b0b0 100644 (file)
@@ -305,13 +305,11 @@ var DimpCore = {
 
     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);
         }
     },
 
index 26e4014..de13122 100644 (file)
@@ -501,12 +501,6 @@ class IMP_Prefs_Ui
                     $_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':
index a47736c..108cecf 100644 (file)
@@ -1,17 +1,3 @@
-<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>
index 90521aa..bc53d81 100644 (file)
@@ -79,13 +79,7 @@ function _ShowView()
 
     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');