You are not using the newest Greenshot version.
More information about the version you are using can be found
here.
You might want to download the newest version, which is {{ latest_release.tag_name }}, from
here. Also always make sure to get Greenshot from
getgreenshot.org, .
@@ -67,10 +67,7 @@ function compareVersion(a, b) {
return 0;
}
-$(document).ready(function () {
-var versionMatch = /version=([^&]+)/.exec(location);
-if (versionMatch) {
- var installedVersion = versionMatch[1];
+function checkVersion(installedVersion) {
var greenshotTag = {% if latest_release.tag_name %}"{{ latest_release.tag_name }}"{% else %}"Greenshot-Test-1.2.9.129"{% endif %};
var releaseVersion = /.*(\d+\.\d+\.\d+\.\d+)/.exec(greenshotTag)[1];
var compare=compareVersion(releaseVersion, installedVersion);
@@ -89,6 +86,12 @@ if (versionMatch) {
jQuery('#currentVersion').slideDown();
}
}
+
+$(document).ready(function () {
+ var versionMatch = /version=([^&]+)/.exec(location);
+ if (versionMatch) {
+ checkVersion(versionMatch[1]);
+ }
});
\ No newline at end of file
diff --git a/pages/authorize/dropbox.html b/pages/authorize/dropbox.html
new file mode 100644
index 000000000..dad283267
--- /dev/null
+++ b/pages/authorize/dropbox.html
@@ -0,0 +1,9 @@
+---
+layout: oauth
+title: Dropbox authorization
+permalink: /oauth/dropbox
+categories: [oauth]
+tags: [uses_alerts]
+comments: []
+---
+{% include oauth.html service="Dropbox" %}
diff --git a/pages/authorize/imgur.html b/pages/authorize/imgur.html
new file mode 100644
index 000000000..b99f6d35b
--- /dev/null
+++ b/pages/authorize/imgur.html
@@ -0,0 +1,9 @@
+---
+layout: oauth
+title: Imgur authorization
+permalink: /authorize/imgur
+categories: [oauth]
+tags: [uses_alerts]
+comments: []
+---
+{% include oauth.html service="Imgur" %}
diff --git a/pages/oauth/dropbox.html b/pages/oauth/dropbox.html
deleted file mode 100644
index 618009322..000000000
--- a/pages/oauth/dropbox.html
+++ /dev/null
@@ -1,15 +0,0 @@
----
-layout: oauth
-title: Greenshot authenticated with Dropbox
-permalink: /oauth/dropbox
-categories: [oauth]
-tags: [uses_alerts]
-comments: []
----
-{% include oauth-out-of-bounds.html %}
-{% include version-check.html %}
-
-Greenshot should now be authenticated to use Dropbox, you can close this window.
-
-We are happy that you use Greenshot. If you like it, please consider to support the development of this open source screenshot tool with a donation.
-{% include donate.html %}
diff --git a/pages/oauth/imgur.html b/pages/oauth/imgur.html
deleted file mode 100644
index e7a02d57d..000000000
--- a/pages/oauth/imgur.html
+++ /dev/null
@@ -1,15 +0,0 @@
----
-layout: oauth
-title: Imgur
-permalink: /oauth/imgur
-categories: [oauth]
-tags: [uses_alerts]
-comments: []
----
-{% include oauth-out-of-bounds.html %}
-{% include version-check.html %}
-
-Greenshot should now be authenticated to use Imgur, you can close this window.
-
-We are happy that you use Greenshot. If you like it, please consider to support the development of this open source screenshot tool with a donation.
-{% include donate.html %}