Skip to content

Commit

Permalink
Merge pull request #172 from Cognifide/bugfix/saving-script-after-edi…
Browse files Browse the repository at this point in the history
…tin-creates-new-script

Fixed bug when save button was creating new script instead of changin…
  • Loading branch information
mjedraszczyk authored Jun 17, 2019
2 parents 40206fe + 3f1ca98 commit d63f396
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@

Console.prototype = {
isFileNameLocked: function () {
return this.$fileName.is('[readonly="readonly"]');
return this.$fileName.is(':disabled');
},
changeFileName: function (name) {
this.$fileName.val(name);
this.$fileName.attr('readonly','readonly');
this.$fileName.attr('disabled', 'disabled');
},
hasChanged: function () {
return this.initialValue !== this.$textArea.val();
Expand Down

0 comments on commit d63f396

Please sign in to comment.