Commit 95b7592b authored by PkSM3's avatar PkSM3

possible bugfix

parent c5747cf6
...@@ -199,4 +199,4 @@ if(isset($_GET['callback'])) echo $_GET['callback'].'('.$res.')'; ...@@ -199,4 +199,4 @@ if(isset($_GET['callback'])) echo $_GET['callback'].'('.$res.')';
else echo $res; else echo $res;
?> ?>
\ No newline at end of file
...@@ -230,7 +230,7 @@ function bringTheNoise(pathfile,type){ ...@@ -230,7 +230,7 @@ function bringTheNoise(pathfile,type){
theurl = bridge["forNormalQuery"] theurl = bridge["forNormalQuery"]
thedata = "unique_id="+getUrlParam.nodeidparam+"&it="+iterationsFA2; thedata = "unique_id="+getUrlParam.nodeidparam+"&it="+iterationsFA2;
thename = true; thename = true;
} }
if (type=="filtermode") { if (type=="filtermode") {
...@@ -239,6 +239,7 @@ function bringTheNoise(pathfile,type){ ...@@ -239,6 +239,7 @@ function bringTheNoise(pathfile,type){
theurl = bridge["forFilteredQuery"]; theurl = bridge["forFilteredQuery"];
thedata = "query="+getUrlParam.nodeidparam; thedata = "query="+getUrlParam.nodeidparam;
thename = false; thename = false;
thedata = thedata.replace("#","_char_");//possible bugfix
} }
// Assigning name for the network // Assigning name for the network
...@@ -259,6 +260,8 @@ function bringTheNoise(pathfile,type){ ...@@ -259,6 +260,8 @@ function bringTheNoise(pathfile,type){
} }
} }
//http://communityexplorer.org/explorerjs.html?nodeidparam={%22categorya%22%3A%22Keywords%22%2C%22categoryb%22%3A%22Scholars%22%2C%22tags%22%3A[%22%23resident%22]}
function theListeners(){ function theListeners(){
pr("in THELISTENERS"); pr("in THELISTENERS");
...@@ -670,7 +673,7 @@ function theListeners(){ ...@@ -670,7 +673,7 @@ function theListeners(){
// Social Spatialization // Social Spatialization
// Semantic Spatialization // Semantic Spatialization
function SigmaLayouting( URL, DATA, NAME) { function SigmaLayouting( URL, DATA, NAME) {
pr(URL+"?"+DATA)
return $.ajax({ return $.ajax({
type: 'GET', type: 'GET',
url: URL, url: URL,
...@@ -679,6 +682,7 @@ function SigmaLayouting( URL, DATA, NAME) { ...@@ -679,6 +682,7 @@ function SigmaLayouting( URL, DATA, NAME) {
dataType: 'jsonp', dataType: 'jsonp',
async: true, async: true,
success : function(data) { success : function(data) {
pr(data)
if(!isUndef(getUrlParam.seed))seed=getUrlParam.seed; if(!isUndef(getUrlParam.seed))seed=getUrlParam.seed;
extractFromJson(data,seed); extractFromJson(data,seed);
...@@ -783,7 +787,6 @@ function SigmaLayouting( URL, DATA, NAME) { ...@@ -783,7 +787,6 @@ function SigmaLayouting( URL, DATA, NAME) {
$("#semLoader").hide(); $("#semLoader").hide();
if( NOW=="B" ) { if( NOW=="B" ) {
pr("i made a modification")
changeToMacro("semantic"); changeToMacro("semantic");
partialGraph.draw(); partialGraph.draw();
// $("#sliderBEdgeWeight").html(""); // $("#sliderBEdgeWeight").html("");
......
...@@ -1049,16 +1049,10 @@ function MultipleSelection(nodes){ ...@@ -1049,16 +1049,10 @@ function MultipleSelection(nodes){
else ndsids=nodes; else ndsids=nodes;
if(!checkBox) { if(!checkBox) {
checkBox=true; checkBox=true;
pr("IN MULTIPLE SELECTION: past="+PAST)
pr("IN MULTIPLE SELECTION: now="+NOW)
pr("previous selections:")
pr(prevsels)
if(PAST=="--") { if(PAST=="--") {
pr("faire rien") pr("faire rien")
// ndsids = Object.keys(prevsels);
} else { } else {
if(!is_empty(prevsels) && PAST==NOW ) { if(!is_empty(prevsels) && PAST==NOW ) {
var blacklist = {}; var blacklist = {};
...@@ -1082,10 +1076,6 @@ function MultipleSelection(nodes){ ...@@ -1082,10 +1076,6 @@ function MultipleSelection(nodes){
} }
} }
} }
// bug in first A* to a*
pr("IN MULTIPLE SELECTION: ndsids=")
pr(ndsids)
pr("")
if (ndsids.length>0) { if (ndsids.length>0) {
for(var i in ndsids) { for(var i in ndsids) {
...@@ -1101,6 +1091,7 @@ function MultipleSelection(nodes){ ...@@ -1101,6 +1091,7 @@ function MultipleSelection(nodes){
return; return;
} }
checkBox=false; checkBox=false;
} else { } else {
//checkbox = true //checkbox = true
cancelSelection(false); cancelSelection(false);
...@@ -1118,8 +1109,6 @@ function MultipleSelection(nodes){ ...@@ -1118,8 +1109,6 @@ function MultipleSelection(nodes){
partialGraph.draw(); partialGraph.draw();
updateLeftPanel_fix(); updateLeftPanel_fix();
// if(categoriesIndex.length==1) updateLeftPanel_uni();
// if(categoriesIndex.length==2) updateLeftPanel_fix();
RefreshState("") RefreshState("")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment