Skip to content

Commit

Permalink
Item10044: using getPreference instead of fowiki.web
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/PhyloWidgetPlugin@12038 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
TemiVarghese authored and TemiVarghese committed Jun 23, 2011
1 parent fad3fc4 commit 3e6e8ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/System/VarPHYLOWIDGET.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -92,9 +92,9 @@ $('<div id=\"overlay\"/>').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;
Expand Down

0 comments on commit 3e6e8ff

Please sign in to comment.