Unable to repeadly add Markers. SOLVED
Closed this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Add a new Marker
2. Fill in form info and click "save"
3. Try adding another Marker
SOLUTION:
Looks like geometry.hasEnded is never set back to True.
Add the following line to the "save_button.onclick" function in admin.js
line 318:
me.selected_geometry_.hasEnded = true;
That'll fix the problem, but the user probably expects the control to
switch back to "view" after clicking "Save". That can easily be
accomplished by triggering the "view" button's 'click' event. I added the
following line to the save_button.onclick function as well:
GEvent.trigger(document.getElementById('view_control'),'click');
but in order for that to work you need to give the button an ID down in the
EditControl.prototype.createButton_ function:
button_img.id = button_opts.name+'_control';
And now it works as expected. :)
Original issue reported on code.google.com by SamHi...@gmail.com
on 20 Sep 2008 at 12:50
GoogleCodeExporter commented
Hey Sam-- Thanks for the fix. Do you want to join the project and commit that
code?
:)
Original comment by pamela.fox
on 23 Sep 2008 at 9:51
- Added labels: ****
- Removed labels: ****
GoogleCodeExporter commented
Tested and uploaded live. Check it out.
And feel free to send more patches. :)
Original comment by pamela.fox
on 27 Sep 2008 at 3:27
- Changed state: Fixed
- Added labels: ****
- Removed labels: ****