[gimp-web/testing] Checking for non-existence of #os is the proper thing to do
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Checking for non-existence of #os is the proper thing to do
- Date: Wed, 29 Jul 2015 20:50:46 +0000 (UTC)
commit 83baf64149ed37e12ea802dfe932610d472963e1
Author: Michael Schumacher <schumaml gmx de>
Date: Wed Jul 29 22:50:18 2015 +0200
Checking for non-existence of #os is the proper thing to do
includes/wgo.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/includes/wgo.js b/includes/wgo.js
index 9c38573..7aea75c 100644
--- a/includes/wgo.js
+++ b/includes/wgo.js
@@ -38,7 +38,7 @@ function renderDownload(platform) {
platform = "os" + $.browser.OS.toLowerCase();
}
- if ( $("#os").is(':empty') ) {
+ if ( ! $("#os").length ) {
$("#downloads").html("<div id=\"moreos\"></div>\n<div id=\"os\"></div>\n<hr />\n<div
id=\"source\"></div>\n");
$("#moreos").html("Our site thinks that you are using: " + platforms[platform] + "</br>" +
"Show downloads for <a href=\"javascript:renderDownload('oslinux');\">" +
platforms['oslinux'] + "</a>" +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]