keokilee / makahiki

An open source framework for creating dorm energy competitions using Django and Pinax.
http://code.google.com/p/kukui-cup
12 stars 8 forks source link

Hard locked activities don't show dialog #450

Closed rbrewer closed 13 years ago

rbrewer commented 13 years ago

Some activities, such as placeholders, are locked by the use of "False" in the "Depends on" field. It appears if False is the predicate, then clicking on the lock doesn't show the dialog box that displays the "Depends on text" explaining how the user how they can unlock the activity.

It would be good if the Depends on text was always displayed, even if the predicate is False.

yongwen commented 13 years ago

it seems to be the depends on text ("This square can't be unlocked (for now)") causes the javasccript error, I changed the text to "This square can not be unlocked (for now)", it works. It is the single quote that got escape as "'" causing a javascript error. Please try to not using the single quote, potentially some other special characters. there may be a way to use markdown, but for now, we could just work around the text.

rbrewer commented 13 years ago

OK, will do.