From d2c4505261e0366ac4898438ff20be5e7249cadb Mon Sep 17 00:00:00 2001 From: sandb Date: Sun, 14 Nov 2010 07:50:46 +0100 Subject: [PATCH] fixed the download scanner link and made it configurable --- js/pamela-buttons.js | 2 +- js/pamela-conf.php | 1 + scanner/pamela-scanner.sh | 0 3 files changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 scanner/pamela-scanner.sh diff --git a/js/pamela-buttons.js b/js/pamela-buttons.js index 95925bb..8ac88ac 100644 --- a/js/pamela-buttons.js +++ b/js/pamela-buttons.js @@ -108,7 +108,7 @@ DownloadScriptButton.prototype.draw = function() { }; DownloadScriptButton.prototype.execute = function() { - location.href = 'pamela-scanner.sh'; + location.href = config.scannerDownloadLink; }; // Class IFace buttons diff --git a/js/pamela-conf.php b/js/pamela-conf.php index 48f7efe..1448e00 100644 --- a/js/pamela-conf.php +++ b/js/pamela-conf.php @@ -7,4 +7,5 @@ config = new function() { this.image = ""; this.buttonColor = ""; this.buttonShow = ; + this.scannerDownloadLink = ""; } diff --git a/scanner/pamela-scanner.sh b/scanner/pamela-scanner.sh old mode 100755 new mode 100644