Module: nagvis Branch: master Commit: 63fc4670cdafb345622a1fe6f9125aa514ae8a1f URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=63fc4670cdafb345622a1fe6f9125aa514ae8a1f
Author: Lars Michelsen <[email protected]> Date: Sun Oct 11 19:46:25 2009 +0200 Fixed search result handling to handle multiple results --- share/frontend/nagvis-js/js/frontend.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/frontend.js b/share/frontend/nagvis-js/js/frontend.js index 161ae90..d21d31d 100755 --- a/share/frontend/nagvis-js/js/frontend.js +++ b/share/frontend/nagvis-js/js/frontend.js @@ -113,7 +113,7 @@ function searchObjects(sMatch) { // When single found: highlight and focus the object for(var i = 0, len = aResults.length; i < len; i++) { var intIndex = aResults[i]; - + // - highlight the object if(aMapObjects[intIndex].conf.view_type && aMapObjects[intIndex].conf.view_type === 'icon') { // Detach the handler @@ -125,7 +125,7 @@ function searchObjects(sMatch) { } // - Scroll to object - if(len = 1) { + if(len == 1) { // Detach the handler setTimeout('scrollSlow('+aMapObjects[intIndex].conf.x+', '+aMapObjects[intIndex].conf.y+', 15)', 0); } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
