2 new revisions:

Revision: 54abdd9ff0c7
Branch:   default
Author:   Pekka Klärck
Date:     Fri Feb 15 05:45:47 2013
Log:      log/report: our map is faster than jquery's
http://code.google.com/p/robotframework/source/detail?r=54abdd9ff0c7

Revision: 4f228ba40724
Branch:   default
Author:   Pekka Klärck
Date:     Fri Feb 15 06:05:51 2013
Log: log/report: links in stat table: only stop propagation of external lin...
http://code.google.com/p/robotframework/source/detail?r=4f228ba40724

==============================================================================
Revision: 54abdd9ff0c7
Branch:   default
Author:   Pekka Klärck
Date:     Fri Feb 15 05:45:47 2013
Log:      log/report: our map is faster than jquery's
http://code.google.com/p/robotframework/source/detail?r=54abdd9ff0c7

Modified:
 /src/robot/htmldata/rebot/log.js
 /src/robot/htmldata/rebot/view.js

=======================================
--- /src/robot/htmldata/rebot/log.js    Fri Feb 15 05:30:05 2013
+++ /src/robot/htmldata/rebot/log.js    Fri Feb 15 05:45:47 2013
@@ -114,7 +114,7 @@
 }

 function scrollToShortestVisibleAnchorElement(anchors) {
-    anchors = $.map(anchors, closestVisibleParent);
+    anchors = util.map(anchors, closestVisibleParent);
     var shortest = anchors[0];
     for (var i = 1; i < anchors.length; i++)
         if (shortest.height() > anchors[i].height())
=======================================
--- /src/robot/htmldata/rebot/view.js   Thu Feb 14 05:45:54 2013
+++ /src/robot/htmldata/rebot/view.js   Fri Feb 15 05:45:47 2013
@@ -79,7 +79,7 @@
'<th class="stats-col-name">Statistics by Suite</th>' + statHeaders +
         '</tr></thead></table>';
     $(statTable).appendTo('#statistics-container');
-    $.map(['total', 'tag', 'suite'], addStatTable);
+    util.map(['total', 'tag', 'suite'], addStatTable);
     stopStatLinkClickPropagation();
     addTooltipsToElapsedTimes();
     enableStatisticsSorter();

==============================================================================
Revision: 4f228ba40724
Branch:   default
Author:   Pekka Klärck
Date:     Fri Feb 15 06:05:51 2013
Log: log/report: links in stat table: only stop propagation of external links

With internal links stopping propagation prevented running eventhandlers
attached to stat rows. The only problem with this solution is that opening
internal links to other tabs doesn't work  with Chrome. It works with
Firefox so it can be argued it's a Chrome bug. Pretty minor nevertheless.
http://code.google.com/p/robotframework/source/detail?r=4f228ba40724

Modified:
 /src/robot/htmldata/rebot/report.html
 /src/robot/htmldata/rebot/view.js

=======================================
--- /src/robot/htmldata/rebot/report.html       Fri Feb 15 05:30:05 2013
+++ /src/robot/htmldata/rebot/report.html       Fri Feb 15 06:05:51 2013
@@ -405,7 +405,7 @@
       </div>
       <div class="tag-links">
         {{each links}}
-        <span>[<a href="${$value.url}"
+        <span>[<a href="${$value.url}" onclick="stopPropagation(event)"
                   title="${$value.url}">{{html $value.title}}</a>]</span>
         {{/each}}
       </div>
=======================================
--- /src/robot/htmldata/rebot/view.js   Fri Feb 15 05:45:47 2013
+++ /src/robot/htmldata/rebot/view.js   Fri Feb 15 06:05:51 2013
@@ -80,14 +80,9 @@
         '</tr></thead></table>';
     $(statTable).appendTo('#statistics-container');
     util.map(['total', 'tag', 'suite'], addStatTable);
-    stopStatLinkClickPropagation();
     addTooltipsToElapsedTimes();
     enableStatisticsSorter();
 }
-
-function stopStatLinkClickPropagation() {
-    $('.statistics a').click(stopPropagation);
-}

 function addTooltipsToElapsedTimes() {
     $('.stats-col-elapsed').attr('title',

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to