[ZBX-5679] icons can't be viewed in iconmapping config Created: 2012 Oct 09  Updated: 2017 May 30  Resolved: 2012 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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



 Comments   
Comment by richlv [ 2012 Oct 09 ]

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

Comment by Alexey Fukalov [ 2012 Oct 12 ]

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

Comment by Eduards Samersovs (Inactive) [ 2012 Oct 17 ]

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

{src: ''}

)

not

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

Vedmak RESOLVED r30888.
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Oct 17 ]

Tested!

Comment by Alexey Fukalov [ 2012 Oct 17 ]

Fixed in 2.0.4rc1 r30889, pre-2.1.0 r30890.

Generated at Sat Apr 20 09:58:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.