Commit fe8d2d37 authored by Romain Loth's avatar Romain Loth

move some initializations from main to Tina.init()

(forgotten part from last commit 2232005f)
parent 2232005f
......@@ -355,6 +355,20 @@ var TinaWebJS = function ( sigmacanvas ) {
}
}
$('#tab-container').easytabs({
updateHash:false,
defaultTab: 'li#tabneigh'
});
// show any already existing panel
document.getElementById("graph-panels").style.display = "block"
// grey message in the search bar from settings
$("#searchinput").attr('placeholder', TW.conf.strSearchBar) ;
// load optional modules
activateModules() ;
if (initErrMsg) {
console.error(initErrMsg)
}
......@@ -811,13 +825,14 @@ var TinaWebJS = function ( sigmacanvas ) {
prevsels:TW.SystemState().selectionNids
} )
// 2) clear previous selection
cancelSelection(false)
// 3) show new selection + do all related effects
// 2) show new selection + do all related effects
if(targeted.length>0) {
selInst.MultipleSelection2( {nodes:targeted} )
}
// or clear previous selection
else {
cancelSelection(false)
}
}
})
......
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