Commit cfb5de94 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix block config cancel button to use new form id from 0b6e6f82


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 0e0f3b48
......@@ -281,7 +281,7 @@ function ViewManager() {
self.addConfigureBlock(blockinstance, data.data);
$('action-dummy').name = getNodeAttribute(button, 'name');
var cancelButton = $('cancel_cb_' + blockinstanceId + '_action_configureblockinstance_id_' + blockinstanceId);
var cancelButton = $('cancel_instconf_action_configureblockinstance_id_' + blockinstanceId);
connect(cancelButton, 'onclick', function(e) {
e.stop();
self.removeConfigureBlocks();
......@@ -342,7 +342,7 @@ function ViewManager() {
if (removeoncancel) {
var oldblockid = newblock.id.substr(0, newblock.id.length - '_configure'.length);
var blockinstanceId = oldblockid.substr(oldblockid.lastIndexOf('_') + 1);
var cancelbutton = $('cancel_cb_' + blockinstanceId + '_action_configureblockinstance_id_' + blockinstanceId);
var cancelbutton = $('cancel_instconf_action_configureblockinstance_id_' + blockinstanceId);
if (cancelbutton) {
setNodeAttribute(cancelbutton, 'name', getNodeAttribute(deletebutton, 'name'));
disconnectAll(cancelbutton);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment