aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/off/resources/learnhow.js
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/off/resources/learnhow.js
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/off/resources/learnhow.js')
-rw-r--r--includes/js/dojox/off/resources/learnhow.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/includes/js/dojox/off/resources/learnhow.js b/includes/js/dojox/off/resources/learnhow.js
deleted file mode 100644
index 82d5506..0000000
--- a/includes/js/dojox/off/resources/learnhow.js
+++ /dev/null
@@ -1,43 +0,0 @@
-window.onload = function(){
- // get the app name from our URL
- var href = window.location.href;
- var matches = href.match(/appName=([a-z0-9 \%]*)/i);
- var appName = "Application";
- if(matches && matches.length > 0){
- appName = decodeURIComponent(matches[1]);
- }
-
- // set it in our UI
- var appNameSpan = document.getElementById("dot-learn-how-app-name");
- appNameSpan.innerHTML = "";
- appNameSpan.appendChild(document.createTextNode(appName));
-
- // if we need an offline cache, and we already have one installed,
- // update the UI
- matches = href.match(/hasOfflineCache=(true|false)/);
- var hasOfflineCache = false;
- if(matches && matches.length > 0){
- hasOfflineCache = matches[1];
- // convert to boolean
- hasOfflineCache = (hasOfflineCache == "true") ? true : false;
- }
- if(hasOfflineCache == true){
- // delete the download and install steps
- var downloadStep = document.getElementById("dot-download-step");
- var installStep = document.getElementById("dot-install-step");
- downloadStep.parentNode.removeChild(downloadStep);
- installStep.parentNode.removeChild(installStep);
- }
-
- // get our run link info and update the UI
- matches = href.match(/runLink=([^\&]*)\&runLinkText=([^\&]*)/);
- if(matches && matches.length > 0){
- var runLink = decodeURIComponent(matches[1]);
- var runLinkElem = document.getElementById("dot-learn-how-run-link");
- runLinkElem.setAttribute("href", runLink);
-
- var runLinkText = decodeURIComponent(matches[2]);
- runLinkElem.innerHTML = "";
- runLinkElem.appendChild(document.createTextNode(runLinkText));
- }
-}