Index: trunk/core/kernel/utility/debugger.php
===================================================================
diff -u -N -r5054 -r5104
--- trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 5054)
+++ trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 5104)
@@ -243,8 +243,8 @@
$div_width['current'] = round(($runtime / $total) * $total_width);
$div_width['left'] = round((($total - $total_before - $runtime) / $total) * $total_width);
- $ret = 'Name: '.$Data['description'].'
';
- $ret .= 'Runtime: '.$runtime.'s';
+ $ret = 'Name: '.$Data['description'].'
';
+ $ret .= 'Runtime: '.$runtime.'s
';
$ret .= '
';
$ret .= '';
$ret .= '';
Index: trunk/kernel/admin_templates/incs/grid.js
===================================================================
diff -u -N -r5035 -r5104
--- trunk/kernel/admin_templates/incs/grid.js (.../grid.js) (revision 5035)
+++ trunk/kernel/admin_templates/incs/grid.js (.../grid.js) (revision 5104)
@@ -123,19 +123,24 @@
this.Grid.SelectedCount--;
}
+GridItem.prototype.ClearBrowserSelection = function() {
+ if (window.getSelection) {
+ // removeAllRanges will be supported by Opera from v 9+, do nothing by now
+ var selection = window.getSelection();
+ if (selection.removeAllRanges) { // Mozilla & Opera 9+
+ window.getSelection().removeAllRanges();
+ }
+ } else if (document.selection && !is.opera) { // IE
+ document.selection.empty();
+ }
+}
+
GridItem.prototype.Click = function (ev)
{
- if (!is.ie) {
- var e = ev;
- window.getSelection().removeAllRanges(); //Other browsers
- }
- else {
- var e = window.event;
- document.selection.empty() //IE
- }
-
+ this.ClearBrowserSelection();
this.Grid.ClearAlternativeGridsSelection('GridItem.Click');
+ var e = !is.ie ? ev : window.event;
if (e.shiftKey && !this.Grid.RadioMode) {
this.Grid.SelectRangeUpTo(this.sequence);
}