Module: nagvis Branch: master Commit: 096746166f1b12a6c2222d14d72cb1ffd1ec62e8 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=096746166f1b12a6c2222d14d72cb1ffd1ec62e8
Author: LaMi <[email protected]> Date: Tue Dec 22 20:19:00 2009 +0100 Not reloading the WUI on object deletion; Fixed reload after editing objects --- share/frontend/wui/js/wui.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index f8c2958..3c5c073 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -360,8 +360,9 @@ function deleteMapObject(oObj) { } oResult = null; - // FIXME: Reloading the map (Change to simply removing the object) - document.location.href='./index.php?map='+map; + // Remove the object from the map + document.getElementById('mymap').removeChild(document.getElementById('box_'+type+'_'+id)); + oObj = null; return true; } else { @@ -408,7 +409,7 @@ function formSubmit(formId, target, bReloadPage) { // FIXME: Reloading the map (Change to reload object) if(bReloadPage === true) { - document.location.href='./index.php?map='+mapname; + document.location.href='./index.php?mod=Map&act=edit&show='+mapname; } return true; ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
