fixed: Thingy: "cancel" -- cannot cancel when adding a thing
This commit is contained in:
parent
357b2b3c5c
commit
f72cf18011
3 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue