ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5679

icons can't be viewed in iconmapping config

    Details

      Description

      iconmapping config, add some rules, click on icons - nothing happens.

      [2012-10-09 17:17:17] JavaScript - adm.iconmapping.php?form=update&iconmapid=1&sid=ae9ec4201265fe29
      Event thread: click
      Uncaught exception: TypeError: 'hintText.replace' is not a function
      Error thrown at line 8358, column 2 in <anonymous function: createBox>(e, target, hintText, width, className, isStatic) in jsLoader.php?ver=2.1.0&lang=en_GB&isMenu=1:
      hintText = hintText.replace(/\n/g, '<br />');
      called from line 8429, column 2 in <anonymous function: showHint>(e, target, hintText, width, className, isStatic) in jsLoader.php?ver=2.1.0&lang=en_GB&isMenu=1:
      target.hintBoxItem = hintBox.createBox(e, target, hintText, width, className, isStatic);
      called from line 8414, column 3 in <anonymous function: showStaticHint>(e, target, hint, width, className, resizeAfterLoad) in jsLoader.php?ver=2.1.0&lang=en_GB&isMenu=1:
      hintBox.showHint(e, target, hint, width, className, true);
      called from line 79, column 3 in <anonymous function>(e) in adm.iconmapping.php?form=update&iconmapid=1&sid=ae9ec4201265fe29:
      hintBox.showStaticHint(e, this, img, '', '', true);
      called via Function.prototype.apply() from line 4979, column 8566 in <anonymous function: dispatch>(c) in jsLoader.php?ver=2.1.0&lang=en_GB&isMenu=1:
      c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))
      called via Function.prototype.apply() from line 4979, column 1244 in <anonymous function: i>(a) in jsLoader.php?ver=2.1.0&lang=en_GB&isMenu=1:
      return typeof f!="undefined"&&(Unable to render embedded object: File (a) not found.==a.type)?f.event.dispatch.apply(i.elem,arguments):b

      broken by :

      r29854 | tomtom | 2012-08-27 12:03:13 +0300 (Mon, 27 Aug 2012) | 5 lines

      ..F....... ZBX-5444 fixed maintenance hint not accessible if user has no permissions
      ..F....... ZBX-5444 added functionality to hints, and now all newlines are converted to <br> tag
      ..F....... ZBX-5444 fixed host in maintenance not highlighted by adding icon to hosts in maintenance
      ..F....... ZBX-5444 fixed "last 20 issue" widget lines being 2px higher than other table lines in dashboard
      ..F....... ZBX-5444 made host names with maintenance description correctly aligning in new lines in Monitoring->triggers when browser window width is changed

        Activity

        Hide
        richlv added a comment -

        (1) let's check that icons like 1u rackmountable server scale properly

        Show
        richlv added a comment - (1) let's check that icons like 1u rackmountable server scale properly
        Hide
        Alexey Fukalov added a comment -

        Dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5679

        Show
        Alexey Fukalov added a comment - Dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5679
        Hide
        Eduards Samersovs added a comment - - edited

        (2) Offer create new elements in jQuery like this (for example):
        var img = $('<img />',

        {src: ''}

        )

        not

        var img = $('<img src=' + $(this).data('imageFull') + ' >');

        Alexey Fukalov RESOLVED r30888.
        Eduards Samersovs CLOSED

        Show
        Eduards Samersovs added a comment - - edited (2) Offer create new elements in jQuery like this (for example): var img = $('<img />', {src: ''} ) not var img = $('<img src=' + $(this).data('imageFull') + ' >'); Alexey Fukalov RESOLVED r30888. Eduards Samersovs CLOSED
        Hide
        Eduards Samersovs added a comment -

        Tested!

        Show
        Eduards Samersovs added a comment - Tested!
        Hide
        Alexey Fukalov added a comment -

        Fixed in 2.0.4rc1 r30889, pre-2.1.0 r30890.

        Show
        Alexey Fukalov added a comment - Fixed in 2.0.4rc1 r30889, pre-2.1.0 r30890.

          People

          • Assignee:
            Alexey Fukalov
            Reporter:
            richlv
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: