[gimp-web/testing] The #downloads div is never empty
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] The #downloads div is never empty
- Date: Wed, 29 Jul 2015 20:26:00 +0000 (UTC)
commit 88b90ff2dcba0e522e8c3e8afd6059dc51640732
Author: Michael Schumacher <schumaml gmx de>
Date: Wed Jul 29 22:25:33 2015 +0200
The #downloads div is never empty
includes/wgo.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/includes/wgo.js b/includes/wgo.js
index b9b22f5..18a950e 100644
--- a/includes/wgo.js
+++ b/includes/wgo.js
@@ -26,8 +26,8 @@ function mangleforOpera() {
//provide download page depending on OS
function renderDownload(platform) {
- if ( $("#downloads").is(':empty') ) {
- $("#downloads").html("<div id=\"moreos\"></div>\n<div id=\"os\"> </div>\n<hr />\n<div
id=\"source\"> </div>\n");
+ if ( $("#os").is(':empty') ) {
+ $("#downloads").html("<div id=\"moreos\"></div>\n<div id=\"os\"></div>\n<hr />\n<div
id=\"source\"></div>\n");
$("#moreos").html("Show downloads for <a
href=\"javascript:renderDownload('oslinux');\">GNU/Linux</a>" +
" | <a href=\"javascript:renderDownload('osmac');\">OS X</a>" +
" | <a href=\"javascript:renderDownload('oswindows');\">Microsoft
Windows</a>" +
@@ -74,7 +74,9 @@ function renderDownload(platform) {
}
- $("#source").load("source.html"); //sources for all
+ if ( $("#source").is(':empty') ) {
+ $("#source").load("source.html"); //sources for all
+ }
}
var usertyped = ""; //for the easteregg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]