Task #1045 - Amélioration apparence :
Détail opération : avec onglet + action liée (ajout + suppression)
This commit is contained in:
parent
cbd188fb6d
commit
bbf9fb1dd0
10 changed files with 291 additions and 249 deletions
|
|
@ -2569,4 +2569,45 @@ function select_cat(x)
|
|||
old_class = old_select.className;
|
||||
$(old_select).className = "highlight";
|
||||
$('fd_id').value = x;
|
||||
}
|
||||
/**
|
||||
* Show the DIV and hide the other, the array of possible DIV are
|
||||
* in a_tabs,
|
||||
* @param {array} a_tabs name of possible tabs
|
||||
* @param {strng} p_display_tab tab to display
|
||||
*/
|
||||
function show_tabs(a_tabs,p_display_tab)
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( a_tabs.length == 0 ) trow ('a_tabs in empty');
|
||||
var i=0;
|
||||
for ( i=0;i<a_tabs.length;i++) {
|
||||
if ( console ) console.log(a_tabs[i]);
|
||||
$(a_tabs[i]).hide();
|
||||
}
|
||||
if ( console )console.log(p_display_tab);
|
||||
$(p_display_tab).show();
|
||||
} catch(e) {
|
||||
if ( console )console.log(e.message);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Change the class of all the "LI" element of a UL or OL
|
||||
* @param node of ul (this)
|
||||
*/
|
||||
function unselect_other_tab(p_tab)
|
||||
{
|
||||
try {
|
||||
var other = p_tab.getElementsByTagName("li");
|
||||
var i=0;
|
||||
var tab=null;
|
||||
for (i=0;i<other.length;i++) {
|
||||
tab=other[i];
|
||||
tab.className="tabs";
|
||||
}
|
||||
} catch(e) {
|
||||
if ( console ) console.log(e.message);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue