mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
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:
parent
4ab2d151e5
commit
a7b082d6ba
2 changed files with 3 additions and 4 deletions
Binary file not shown.
|
@ -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!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue