incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ar...@apache.org
Subject svn commit: r1229792 - /incubator/ooo/trunk/main/solenv/bin/build.pl
Date Tue, 10 Jan 2012 23:16:46 GMT
Author: arist
Date: Tue Jan 10 23:16:46 2012
New Revision: 1229792

URL: http://svn.apache.org/viewvc?rev=1229792&view=rev
Log:
tweaking page refresh behavior

Modified:
    incubator/ooo/trunk/main/solenv/bin/build.pl

Modified: incubator/ooo/trunk/main/solenv/bin/build.pl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/build.pl?rev=1229792&r1=1229791&r2=1229792&view=diff
==============================================================================
--- incubator/ooo/trunk/main/solenv/bin/build.pl (original)
+++ incubator/ooo/trunk/main/solenv/bin/build.pl Tue Jan 10 23:16:46 2012
@@ -2901,30 +2901,19 @@ sub generate_html_file {
     };
 
     print HTML 'function refreshInfoFrames() {        ' . "\n";
-    print HTML '    if (top.innerFrame.frames[2].location) {' . "\n";
-    print HTML '        var urlquery = location.href.split("?");' . "\n";
-    print HTML '        top.innerFrame.frames[2].location = urlquery[0] + "?initFrame2";'
. "\n";
+    print HTML '    var ModuleHref = top.innerFrame.frames[0].document.getElementById("ErroneousModules").getAttribute(\'href\');'
. "\n";
+    print HTML '    eval(ModuleHref);' . "\n";
+    print HTML '    if (top.innerFrame.frames[1].document.getElementById("ModuleJobs") !=
null) {' . "\n";
+    print HTML '        var ModuleName = top.innerFrame.frames[1].document.getElementById("ModuleJobs").getAttribute(\'name\');'
. "\n";
+    print HTML '        ModuleHref = top.innerFrame.frames[0].document.getElementById(ModuleName).getAttribute(\'href\');'
. "\n";
+    print HTML '        var HrefString = ModuleHref.toString();' . "\n";
+    print HTML '        var RefEntries = HrefString.split(",");' . "\n";
+    print HTML '        var RefreshParams = new Array();' . "\n";
+    print HTML '        for (i = 0; i < RefEntries.length; i++) {' . "\n";
+    print HTML '            RefreshParams[i] = RefEntries[i].substring(RefEntries[i].indexOf("\'")
+ 1, RefEntries[i].lastIndexOf("\'"));' . "\n";
+    print HTML '        };' . "\n";
+    print HTML '        FillFrame_1(RefreshParams[0], RefreshParams[1], RefreshParams[2]);'
. "\n";
     print HTML '    }' . "\n";
-    print HTML '    var ModuleNameObj = top.innerFrame.frames[2].document.getElementById("ModuleErrors");'
. "\n";
-    print HTML '    if (ModuleNameObj != null) {' . "\n";
-    print HTML '        var ModuleName = ModuleNameObj.getAttribute(\'name\');' . "\n";
-    print HTML '        var ModuleHref = top.innerFrame.frames[0].document.getElementById(ModuleName).getAttribute(\'href\');'
. "\n";
-    print HTML '         eval(ModuleHref);' . "\n";
-    print HTML '    } else if (top.innerFrame.frames[2].document.getElementById("ErroneousModules")
!= null) {' . "\n";
-    print HTML '        var ModuleHref = top.innerFrame.frames[0].document.getElementById("ErroneousModules").getAttribute(\'href\');'
. "\n";
-    print HTML '        eval(ModuleHref);' . "\n";
-    print HTML '        if (top.innerFrame.frames[1].document.getElementById("ModuleJobs")
!= null) {' . "\n";
-    print HTML '            var ModuleName = top.innerFrame.frames[1].document.getElementById("ModuleJobs").getAttribute(\'name\');'
. "\n";
-    print HTML '            ModuleHref = top.innerFrame.frames[0].document.getElementById(ModuleName).getAttribute(\'href\');'
. "\n";
-    print HTML '            var HrefString = ModuleHref.toString();' . "\n";
-    print HTML '            var RefEntries = HrefString.split(",");' . "\n";
-    print HTML '            var RefreshParams = new Array();' . "\n";
-    print HTML '            for (i = 0; i < RefEntries.length; i++) {' . "\n";
-    print HTML '                RefreshParams[i] = RefEntries[i].substring(RefEntries[i].indexOf("\'")
+ 1, RefEntries[i].lastIndexOf("\'"));' . "\n";
-    print HTML '            };' . "\n";
-    print HTML '            FillFrame_1(RefreshParams[0], RefreshParams[1], RefreshParams[2]);'
. "\n";
-    print HTML '        }' . "\n";
-    print HTML '    };' . "\n";
     print HTML '}' . "\n";
     print HTML 'function loadFrame_1() {' . "\n";
     print HTML '    document.write("<h3 align=center>Jobs</h3>");' . "\n";



Mime
View raw message