Ad Widget

Collapse

Zabbix 1.5 - showhint.js - Invalid Argument

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.5 - showhint.js - Invalid Argument

    When viewing an action in configuration using ie6 in script debug mode and putting the mouse pointer over the email in operations, an invalid Argument is thrown in showhint.js on the line in red.

    Code:
    	if(parseInt(cursor.x+10+hint_box.offsetWidth) > body_width){
    		cursor.x-=parseInt(hint_box.offsetWidth);
    		cursor.x-=10;
    		cursor.x=(cursor.x < 0)?0:cursor.x;
    	}
    	else{
    		cursor.x+=10;
    	}
    
    	hint_box.style.left     = cursor.x + "px";
    //	hint_box.style.left		= hint_box.x + obj.offsetWidth + 10 + "px";
    [COLOR="Red"]	hint_box.style.top      = hint_box.y + obj.offsetHeight + "px";[/COLOR]
    }
    
    function create_hint_box()
    {
    	if(hint_box) return;
    
    	hint_box = document.createElement("div");
    	hint_box.setAttribute("id", "hint_box");
    	document.body.appendChild(hint_box);
    
    	hide_hint();
    Last edited by Palmertree; 01-04-2008, 04:20.
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    Also, noticed that the pop up showing the email alert cuts off the left part of the screen.

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      Thanks.The error fixed in rev. 5571
      Just add the line in js/showhint.js:
      Code:
      function update_hint(obj, e)
      {
      	if(!hint_box) return;
      [COLOR="Blue"]	if('undefined' == typeof(hint_box.y)) return;[/COLOR]
      I don't think I understand what you mean by cutting off, maybe you could attach a screenshot?
      Zabbix | ex GUI developer

      Comment

      • Palmertree
        Senior Member
        • Sep 2005
        • 746

        #4
        Thanks Aly. This might fix the problem with the email action yelow popup when you put the mouse over the operations in actions. The left of the yellow box is shaving off the left side of the email. Sorta like the width of the box is to small. I will send a screenshot if this fix does not fix it. Thanks again.

        Comment

        Working...