Commit 72ec1774 authored by Penny Leach's avatar Penny Leach Committed by Nigel McNie
Browse files

fixing bug in the delete block instance js

parent 0a3d6ee5
......@@ -200,7 +200,7 @@ function ViewManager() {
forEach(getElementsByTagAndClassName('input', 'deletebutton', 'bottom-pane'), function(i) {
connect(i, 'onclick', function(e) {
var pd = {'view': $('viewid').value, 'change': 1};
pd['action_' + e.src().getAttribute('name')] = 1;
pd[e.src().getAttribute('name')] = 1;
sendjsonrequest('viewrework.json.php', pd, 'POST', function(data) {
if (!data.error) {
// TODO: not happy with using .parentNode, it's fragile
......
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