os-js / OS.js

OS.js - JavaScript Web Desktop Platform
https://www.os-js.org/
Other
6.9k stars 821 forks source link

Cannot save document created in writer #84

Closed seemikehack closed 9 years ago

andersevenrud commented 9 years ago

@seemikehack Are you sure ? I just tested this and there are no problems here.

Did you get an error message?

MrSchism commented 9 years ago

If you hit enter, it does spit a bug.

TypeError: undefined is not a function
at FileDialog.onInputEnter (http://osjsv2.0o.no/osjs.js:13380:10)
at $input._addGUIElement.OSjs.GUI.Text.onKeyPress (http://osjsv2.0o.no/osjs.js:13114:16)
at HTMLInputElement.<anonymous> (http://osjsv2.0o.no/osjs.js:9508:27)

You can save by clicking.

andersevenrud commented 9 years ago

@MrSchism Thanks, mate! Fixed :)

Don't know how the hell I could have missed that one.

andersevenrud commented 9 years ago

@seemikehack Thanks for the report. Fixed now

MrSchism commented 9 years ago

Honestly, if you were busy, I probably would have fixed it myself later this evening.

andersevenrud commented 9 years ago

@MrSchism If I knew that, I would have let you, hehe. I was actually doing some coding already, so it took me only a few secs :) This was some leftovers from a refactor I did... looks like I missed one line! I sould really look at unit testing for this.