Skip to content

Commit

Permalink
prevent showing old editor when click fails (see #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van den Eijnden committed Oct 29, 2014
1 parent b03ba0e commit b9f3648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wpsui.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ wps.editor.prototype.validateNodeProperty = function(info, value) {

wps.editor.prototype.showEditForm = function(node) {
if (node['type'] !== 'input' || (typeof node.value === "string" && node.value.indexOf(wps.SUBPROCESS) !== -1)) {
$('.input-map').detach();
$('#tab-inputs').html('');
return;
}
this.editingNode_ = node;
Expand Down Expand Up @@ -2105,6 +2103,8 @@ wps.ui.prototype.clearSelection = function() {

wps.ui.nodeMouseUp = function(ui, d) {
var me = ui;
$('.input-map').detach();
$('#tab-inputs').html('');
if (me.mouseMode !== 3 && me.mousedownNode == d) {
me.editor_.showEditForm(d);
me.mouseMode = 5; // EDITING
Expand Down

0 comments on commit b9f3648

Please sign in to comment.