From 3e6e8ff8eef33b404db99d34b2d7221ec4edb90c Mon Sep 17 00:00:00 2001 From: TemiVarghese Date: Thu, 23 Jun 2011 07:58:57 +0000 Subject: [PATCH] Item10044: using getPreference instead of fowiki.web git-svn-id: http://svn.foswiki.org/trunk/PhyloWidgetPlugin@12038 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- data/System/VarPHYLOWIDGET.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/System/VarPHYLOWIDGET.txt b/data/System/VarPHYLOWIDGET.txt index a7c826b..dc2816b 100644 --- a/data/System/VarPHYLOWIDGET.txt +++ b/data/System/VarPHYLOWIDGET.txt @@ -48,10 +48,10 @@ form.find("[name ='phylo']").attr('value',phylo); form.find("[name ='genus']").attr('value','$genus'); form.submit(); //clade= escape(clade); -//var url = 'http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade?clade=' + clade + ';theweb=' + foswiki.web + ';thetopic=' + foswiki.topic + ';phylo='+phylo+';'; +//var url = 'http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade?clade=' + clade + ';theweb=' + foswiki.getPreference('WEB') + ';thetopic=' + foswiki.getPreference('TOPIC') + ';phylo='+phylo+';'; //window.location = url; -//$.get('http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade',{'clade':clade,'theweb':foswiki.web,'thetopic':foswiki.topic,'phylo':phylo,function(data){ +//$.get('http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade',{'clade':clade,'theweb':foswiki.getPreference('WEB'),'thetopic':foswiki.getPreference('TOPIC'),'phylo':phylo,function(data){ //alert('processing is now complete:'+data); //window.location = data; @@ -92,9 +92,9 @@ $('
').css({ function processClade(clade,phylo){ //alert(clade); clade= escape(clade); -var url = 'http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade?clade=' + clade + ';theweb=' + foswiki.web + ';thetopic=' + foswiki.topic + ';phylo='+phylo+';'; +var url = 'http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade?clade=' + clade + ';theweb=' + foswiki.getPreference('WEB') + ';thetopic=' + foswiki.getPreference('TOPIC') + ';phylo='+phylo+';'; window.location = url; -//$.get('http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade',{'clade':clade,'theweb':foswiki.web,'thetopic':foswiki.topic,'phylo':phylo,function(data){ +//$.get('http://peperomia-bp/temi/bin/rest/PhyloWidgetPlugin/processClade',{'clade':clade,'theweb':foswiki.getPreference('WEB'),'thetopic':foswiki.getPreference('TOPIC'),'phylo':phylo,function(data){ //alert('processing is now complete:'+data); //window.location = data;