fixed: Thingy: "cancel" -- cannot cancel when adding a thing

This commit is contained in:
Yung Han Khoe 2008-04-02 13:20:55 +00:00
parent 357b2b3c5c
commit f72cf18011
3 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,14 @@
function setCancelButton () {
var cancelButtons = YAHOO.util.Dom.getElementsByClassName('backwardButton','input','application_workarea');
function deleteTempThing () {
window.location.href = "?func=deleteThingConfirm;thingId="+newThingId;
}
for (var i = cancelButtons.length; i--; ) {
cancelButtons[i].onclick = deleteTempThing;
}
}
function initOptionalFields(prefix,fieldId) {
var fieldInThing_module_rendered;