fixed problems on elementary os
This commit is contained in:
parent
91913ddaad
commit
0e6600ac68
2 changed files with 9 additions and 5 deletions
|
@ -414,6 +414,7 @@ class NewPost(Helper.RestorableWindow):
|
|||
def load_finished(self, widget):
|
||||
callback = "function() { bungloo.newpost.setStatus(\"%s\"); }" % (self.status_string)
|
||||
script = "function HostAppGo() { start('newpost', " + callback + "); }"
|
||||
script = "function HostAppGo() { start('newpost'); }"
|
||||
self.webView.page().mainFrame().evaluateJavaScript(script)
|
||||
self.webView.setFocus()
|
||||
|
||||
|
|
|
@ -26,8 +26,10 @@ function(APICalls, HostApp) {
|
|||
|
||||
$(document.body).append(this.container);
|
||||
|
||||
this.textarea.keyup(this.keyup.bind(this));
|
||||
this.textarea.keydown(this.keydown.bind(this));
|
||||
var _this = this;
|
||||
|
||||
this.textarea.keyup(function(e) { _this.keyup(e) });
|
||||
this.textarea.keydown(function(e) { _this.keydown(e) });
|
||||
|
||||
this.suggestions = $("<ul id='suggestions'></ul>");
|
||||
|
||||
|
@ -49,8 +51,9 @@ function(APICalls, HostApp) {
|
|||
}
|
||||
|
||||
//this.buttons.images.bind("click", this.addImage.bind(this));
|
||||
this.buttons.is_private.bind("click", this.toggleIsPrivate.bind(this));
|
||||
this.buttons.send.bind("click", this.send.bind(this));
|
||||
|
||||
this.buttons.is_private.bind("click", function(e) { _this.toggleIsPrivate(e) ; } );
|
||||
this.buttons.send.bind("click", function (e) { _this.send(e); });
|
||||
|
||||
this.container.find("#status_bar").append(this.counter);
|
||||
this.container.find("#status_bar").append(buttons);
|
||||
|
|
Reference in a new issue