Changed alert to statusbar message

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1646 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-02-09 12:09:51 +00:00
commit a7b082d6ba
2 changed files with 3 additions and 4 deletions

View file

@ -12,8 +12,8 @@ var greenshotPrefObserver = {
this._branch.addObserver("", this, false);
},
unregister: function() {
if (!this._branch) return;
this._branch.removeObserver("", this);
if (!this._branch) return;
this._branch.removeObserver("", this);
},
readDestination: function() {
return "http://" + this._branch.getCharPref("host") + ":" + this._branch.getIntPref("port");
@ -54,8 +54,7 @@ function sendImage(dataUrl, title) {
data: dataUrl,
url: destination + '?title=' + escape(encodeUTF8(title)),
success : function (text) {
alert("Sent image to: " + destination);
//document.getElementById("statusbar-display").label = "Greenshot: " + text;
document.getElementById("statusbar-display").label = "Greenshot: " + text;
},
error : function () {
alert("Couldn't send image to '" + destination + "' please check if Greenshot is running!");