Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- formOutput += "<div class="field textBox" id="" + field.Id + ""><div class="labelTB"><label for="" + field.Id + "" class="" + reqClass + "">" + field.Name + requirement + "</label></div>" +
- "<input type="text" class="numInput" id="" + field.Id + "_tb" name="" + field.Name + "" onkeyup="Service.refresh(this); numCheck(this)" onclick="numCheck(this)" />" +
- // numButtons:
- "<div class="minus plusMinus" id="minus_" + field.Id + "" onmousedown="numBox(this)" /></div>" +
- "<div class="plus plusMinus" id="plus_" + field.Id + "" onmousedown="numBox(this)" /></div></div><br />";
- var setVisibility = function (id, bool) {
- try {
- get(id).style.display = (bool) ? "block" : "none";
- } catch (e) {
- return false;
- }
- return bool;
- }
- var setVisibility = function (id, bool) {
- try {
- get(id).style.display = (bool) ? "block" : "none";
- get(id).style.position = (bool) ? "relative" : "absolute";
- get(id).style.height = (bool) ? "auto" : "0px";
- var children = get("containerType").childNodes
- for (var i in children) {
- if (children[i].style) {
- children[i].style.display = (bool) ? "block" : "none";
- children[i].style.position = (bool) ? "relative" : "absolute";
- children[i].style.height = (bool) ? "auto" : "0px";
- }
- }
- } catch (e) {
- return false;
- }
- return bool;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement