Index: trunk/kernel/admin_templates/incs/toolbar.js =================================================================== diff -u -r1566 -r2479 --- trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 1566) +++ trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 2479) @@ -3,7 +3,7 @@ this.Title = title || ''; this.CheckTitleModule(); this.Alt = RemoveTranslationLink(alt || ''); - + if (typeof(onclick) == 'function') { this.onClick = onclick; } @@ -12,9 +12,9 @@ if (eval('typeof('+this.Title+')') == 'function') eval(this.Title + '()'); } - + } - + this.imgObject = null; this.Enabled = true; this.Hidden = false; @@ -51,19 +51,19 @@ ToolBarButton.prototype.SetOnMouseOver = function() { this.imgObject.onmouseover = function() { - this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '_f2.gif'; + this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '_f2.gif'; }; } ToolBarButton.prototype.SetOnMouseOut = function() { this.imgObject.onmouseout = function() { - this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '.gif'; + this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '.gif'; }; } ToolBarButton.prototype.SetOnClick = function() { this.imgObject.onmouseout = function() { - this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '.gif'; + this.src = this.btn.IconsPath() + this.btn.ToolBar.IconPrefix + this.btn.Title + '.gif'; }; this.imgObject.inClick = false; if (typeof(this.onClick) != 'function') { @@ -83,11 +83,17 @@ this.inClick = false; } } - - // the following lines are correct, as long as mozilla understands 'pointer', but IE 'hand', + + // the following lines are correct, as long as mozilla understands 'pointer', but IE 'hand', // do not change the order of these lines! - this.imgObject.style.cursor = 'pointer'; - this.imgObject.style.cursor = 'hand'; + if (is.ie6up || is.gecko) { + this.imgObject.style.cursor = 'pointer'; + this.imgObject.style.cursor = 'hand'; + } + else { + // somehow set cursor hand for IE 5/ 5.5 + //this.imgObject.style = 'cursor: hand'; + } } ToolBarButton.prototype.Disable = function() { @@ -98,7 +104,7 @@ this.imgObject.onclick = null; this.imgObject.style.cursor = 'default'; this.Enabled = false; -} +} ToolBarButton.prototype.Enable = function() { if (this.Enabled) return; @@ -107,23 +113,23 @@ this.SetOnMouseOut(); this.SetOnClick(); this.Enabled = true; -} +} ToolBarButton.prototype.Hide = function() { this.imgObject.style.display = 'none'; this.Hidden = true; -} +} ToolBarButton.prototype.Show = function() { this.imgObject.style.display = ''; this.Hidden = false; -} +} /* ----------- */ function ToolBarSeparator(title) //extends ToolBarButton { - this.Title = title; + this.Title = title; } ToolBarSeparator.prototype = new ToolBarButton; @@ -144,9 +150,9 @@ function ToolBar(icon_prefix) { - if (typeof(icon_prefix) == 'undefined') + if (typeof(icon_prefix) == 'undefined') this.IconPrefix = 'tool_'; - else + else this.IconPrefix = icon_prefix; this.Buttons = new Array(); }