summaryrefslogtreecommitdiff
path: root/site-media/js/jquery.webstart.js
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-06-13 17:42:59 +0200
committerLeif Johansson <leifj@sunet.se>2011-06-13 17:42:59 +0200
commit63eac434d82c8a18c3c2b437049f8c2401b0349f (patch)
treedd1ed31577aeb4017950e50617542c9293424775 /site-media/js/jquery.webstart.js
parent70aa706dd2977a386f6662c3f32615e600edecdd (diff)
style polish, new jstree (still not working with jquery 1.5) and fresh jquery
Diffstat (limited to 'site-media/js/jquery.webstart.js')
-rw-r--r--site-media/js/jquery.webstart.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/site-media/js/jquery.webstart.js b/site-media/js/jquery.webstart.js
deleted file mode 100644
index 80761c5..0000000
--- a/site-media/js/jquery.webstart.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * jQuery.webstart
- *
- * Written by Leif Johansson (leifj@nordu.net)
- *
- * Licensed under BSD
- * Requires http://java.com/js/deployJava.js
- */
-
-String.prototype.startsWith = function(str) {return (this.match("^"+str)==str)}
-
-jQuery.fn.webstart = function(options) {
- if (typeof(options.minVersion) == "undefined")
- options.minVersion = "1.6.0";
-
- this.each(function() {
- var jnlp = options.jnlp;
- if (!jnlp.startsWith("http")) {
- var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
- jnlp = dir+jnlp
- }
-
- if (deployJava.returnPage == null) {
- deployJava.returnPage = jnlp;
- }
-
- $(this).click(function() {
- if (!deployJava.isWebStartInstalled(options.minVersion)) {
- if (deployJava.installLatestJRE()) {
- if (deployJava.launch(jnlp)) {}
- }
- } else {
- if (deployJava.launch(jnlp)) {}
- }
- });
- });
-} \ No newline at end of file