Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. formOutput += "<div class="field textBox" id="" + field.Id + ""><div class="labelTB"><label for="" + field.Id + "" class="" + reqClass + "">" + field.Name + requirement + "</label></div>" +
  2. "<input type="text" class="numInput" id="" + field.Id + "_tb" name="" + field.Name + "" onkeyup="Service.refresh(this); numCheck(this)" onclick="numCheck(this)" />" +
  3. // numButtons:
  4. "<div class="minus plusMinus" id="minus_" + field.Id + "" onmousedown="numBox(this)" /></div>" +
  5. "<div class="plus plusMinus" id="plus_" + field.Id + "" onmousedown="numBox(this)" /></div></div><br />";
  6.  
  7. var setVisibility = function (id, bool) {
  8. try {
  9. get(id).style.display = (bool) ? "block" : "none";
  10. } catch (e) {
  11. return false;
  12. }
  13. return bool;
  14. }
  15.  
  16. var setVisibility = function (id, bool) {
  17. try {
  18. get(id).style.display = (bool) ? "block" : "none";
  19. get(id).style.position = (bool) ? "relative" : "absolute";
  20. get(id).style.height = (bool) ? "auto" : "0px";
  21. var children = get("containerType").childNodes
  22. for (var i in children) {
  23. if (children[i].style) {
  24. children[i].style.display = (bool) ? "block" : "none";
  25. children[i].style.position = (bool) ? "relative" : "absolute";
  26. children[i].style.height = (bool) ? "auto" : "0px";
  27. }
  28. }
  29. } catch (e) {
  30. return false;
  31. }
  32. return bool;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement