- remove Navigation.js (moved to help text in templates)
- remove Percentages js (moved to help text in templates)
- add extra sanity check when repopulating form fields with FormPersist.js
- disable testgroup/subgroup select boxes -> interim step until test runs since we have no UI to change them yet

b=322607
- add hideAll, and simple toggle functions to moo.fx
This commit is contained in:
ccooper%deadsquid.com 2006-06-05 01:22:25 +00:00
Родитель d21b564f08
Коммит 113123bc48
6 изменённых файлов: 26 добавлений и 8 удалений

Просмотреть файл

@ -62,3 +62,10 @@ function hide(obj) {
obj.style.display = "none";
}
}
function tc_init() {
if (document.getElementById("testconfig")) {
testConfigHeight = new fx.Height('testconfig', {duration: 400});
testConfigHeight.toggle();
}
}

Просмотреть файл

@ -121,6 +121,10 @@ function FormInit(/*HTMLFormElement */ aForm, /* String */ aQueryString)
elements = aForm[name];
if (!elements) {
return;
}
if (typeof elements.nodeName != 'undefined')
{
elements = [elements];

Просмотреть файл

@ -1,4 +0,0 @@
function nav_init() {
myHeight = new fx.Height('instructions', {duration: 400});
myHeight.hide();
}

Просмотреть файл

@ -1,7 +1,7 @@
function selects_onload() {
load_products(getElementByClass("select_product"));
load_testgroups(getElementByClass("select_testgroup"));
load_subgroups(getElementByClass("select_subgroup"));
// load_testgroups(getElementByClass("select_testgroup"));
// load_subgroups(getElementByClass("select_subgroup"));
load_platforms(getElementByClass("select_platform"));
load_opsyses(getElementByClass("select_opsys"));

Просмотреть файл

@ -62,7 +62,5 @@ function showsubgroup() {
function group_init() {
testConfigHeight = new fx.Height('testconfig', {duration: 400});
percentagesHeight = new fx.Height('percentages', {duration: 400});
testConfigHeight.hide();
percentagesHeight.hide();
}

Просмотреть файл

@ -127,6 +127,19 @@ fx.MultiFadeSize.prototype = Object.extend(new Multi(), {
showAll=1;
},
hideAll: function(mode){
for (i=0;i<this.el.length;i++){
if (this.el[i].offsetHeight > 0){
this.el[i].fs.toggle(mode);
}
}
showAll=1;
},
toggle: function(el, mode){
el.fs.toggle(mode);
},
hide: function(el, mode){
el.fs.hide(mode);
}