]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/js/search.js
Salome HOME
Simulation context type selection is fixed in study search. Lucene is no more used...
[tools/siman.git] / Workspace / Siman / WebContent / js / search.js
1     function initialize (result) {
2       if (result == "obsolete") changeFilter();   // Hides the result section and enables the Search button
3     }
4
5     function changeFilter () {
6       var result = document.getElementById("resulist");
7
8       search.elements[0].value = "0";      // Marks the result obsolete
9       result.style.display     = "none";   // Hides the result section
10       search.refresh.disabled  = false;    // Enables the Search button
11     }
12
13     function removeContext (index) {
14         search.elements[0].value = index;
15         search.submit();
16     }
17
18     function cancel () {
19       search.elements[0].value = "-1";
20       search.submit();
21     }