montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
54 stars 13 forks source link

"Nothing to code" button should destroy areas in a particular image #109

Closed numeroteca closed 11 years ago

numeroteca commented 11 years ago

Experienced wrong behavior after drawing an area and then click "nothing to code" button and saving. In the display you can still see the area drawn and the normal behavior of an "nothing to code" image.

The normal behavior: when clicking in "nothing to code" button should be to destroy all the existing areas in that image.

elplatt commented 11 years ago

If there are two "nothing to code" buttons, this is probably because the behavior is being installed by id instead of class. If two elements have the same id, it just gets installed on the first one.

numeroteca commented 11 years ago

I corrected the problem of the duplicated id in the buttons at 99bccfa, but the behavior described here is still happening. "nothing to code" button doesn't destroy all the existing areas in the image.