You need to sign in to do that
Don't have an account?
Find Nearby is slightly broken.
When creating the sortable list for jQuery - someone got a little too quote happy. Below i highlighted the offending code. in makeAllMapList - there is an open quotation mark in front of the id. when it tries to build directions list for callout - $('#allDestinationList').sortable('toArray'); is returning an array with empty data in Chrome (rightly so - as sortable looks for options.attribute || id ... and the extra quotation mark is KILLING me. Can someone from Force.com labs please update the page so that it will work in something besides internet explorer... or at the very least, release it as an UNMANAGED package so that this wouldn't be an issue... a perfect chance to promote GitHub!
function makeAllMapList(){ var pp; var t ='<ul id='allList' class="Connected" style="height:500px; ">'; for(pp=0; pp<allMapItems.length; pp++){ t+='<li class=\'item\' "id=\''+allMapItems[pp].id+'\'><img src=\''+allMapItems[pp].myIcon.image+'\' width=\'15\'/><img id=\'Event'+allMapItems[pp].id+'\' src=\'{!URLFOR($Resource.FN__Plus)}\' width=\'10\'/> '+allMapItems[pp].name+'</li>'; } t+='</ul>';
Whoa good catch -- thanks. BTW it's not available unmanaged -- yet -- but I'm working on that. Sorry for the delay. Look for a correction this week and an update on the unmanaged idea in the near future <safeHarbor/>
Since I'm on a roll...
Can we update the 3 instances of
To
Since all we're doing is removing the "driving directions" image when that list is populated... 404 Errors aren't the most elegant :)
Uploading a test to it as we speak. Here's a beta package of it -- can you take a look and make sure I got everything?
https://login.salesforce.com/?startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04tA00000006MEv