- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
function showOrders (tab, type, page) {
$('#grid').load('../../citizen/'+type);
switch (page) {
case 'cmain':
var activeTab_class = 'mainActiveTab';
var unactiveTab_class = 'mainUnactiveTab';
break;
case 'corders':
var activeTab_class = 'activeTab';
var unactiveTab_class = 'unactiveTab';
break;
}
var some_tab = document.getElementsByClassName(activeTab_class);
var count = some_tab.length;
for (var i = 0; i<= (count-1); i++) {
some_tab[i].className = unactiveTab_class;
}
tab.className = activeTab_class;
}
linbis 30.03.2011 15:30 # 0
turdman 30.03.2011 16:29 # +1
Vasiliy 30.03.2011 20:52 # 0