Changeset 38a1ca7 in osmose-frontend


Ignore:
Timestamp:
Nov 24, 2012 8:46:54 PM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
dc2d258
Parents:
5811459
Message:

Fix marker update from popup

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • static/map/map.js

    r5811459 r38a1ca7  
    55var oldzoom = -1; 
    66var heat = null; 
     7var poisParams = null; 
    78 
    89//----------------------------------------// 
     
    428429    permalink.href = permalink.href.replace(/&level=[-0-9x,]*/, '').replace(/\?level=[-0-9x,]*&?/, '?') + "&level=" + document.myform.level.value; 
    429430 
    430     var params = 
     431    poisParams = 
    431432        "?lat=" + document.myform.lat.value + 
    432433        "&lon=" + document.myform.lon.value + 
     
    436437        "&item=" + ch + 
    437438        "&level=" + document.myform.level.value; 
    438     pois.loadText(params); 
     439    pois.loadText(poisParams); 
    439440 
    440441    if (heat.visibility) { 
    441442        var params = 
    442             "?zoom=" + document.myform.zoom.value + 
    443             "&source=" + document.myform.source.value + 
     443            "?source=" + document.myform.source.value + 
    444444            "&user=" + document.myform.user.value + 
    445445            "&item=" + ch + 
     
    453453    } 
    454454} 
     455 
     456function poisUpdate() { 
     457    pois.loadText(poisParams); 
     458} 
  • views/map/popup.tpl

    rb441b4a r38a1ca7  
    7777  <div class="bulle_maj"> 
    7878    <b>{{_("change status")}} :</b> 
    79     <a onclick="setTimeout('pois.loadText();',2000);" href="../error/<%error_id%>/done" target="hiddenIframe">{{_("corrected")}}</a> 
    80     <a onclick="setTimeout('pois.loadText();',2000);" href="../error/<%error_id%>/false" target="hiddenIframe">{{_("false positive")}}</a> 
     79    <a onclick="setTimeout('poisUpdate();',2000);" href="../error/<%error_id%>/done" target="hiddenIframe">{{_("corrected")}}</a> 
     80    <a onclick="setTimeout('poisUpdate();',2000);" href="../error/<%error_id%>/false" target="hiddenIframe">{{_("false positive")}}</a> 
    8181</div> 
    8282 
Note: See TracChangeset for help on using the changeset viewer.