Sha256: 1a76ade0e584332ff7a20ac7bad97e17bd928723e5c73e122fc12ea0babb4954

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

function AddToCategoryClick(id, me) {
   obj = document.getElementById(id);
   obj.value = me.value;
}
function showdiv(element_name, display_value) {
   if (document.getElementById) { // DOM3 = IE5, NS6
      document.getElementById(element_name).style.display = display_value;
   } else {
      if (document.layers) { // Netscape 4
         document.hideshow.display = display_value;
      } else { // IE 4
         document.all.hideshow.style.display = display_value;
      }
   }
}
function showOrHide(element_name) {
   if (document.getElementById) { // DOM3 = IE5, NS6
      if (document.getElementById(element_name).style.display != 'none'){
         showdiv(element_name, 'none');
      }else{
         showdiv(element_name, 'inline');
      }
   } else {
      if (document.layers) { // Netscape 4
         if (document.hideshow.display != 'none'){
            showdiv(element_name, 'none');
         } else {
            showdiv(element_name, 'inline');
         }
      } else { // IE 4
         if (document.all.hideshow.style.display != 'none'){
            showdiv(element_name, 'none');
         }else{
            showdiv(element_name, 'inline');
         }
      }
   }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smklib-1.2.0 app/assets/javascripts/hide_show.js
smklib-1.1.2 app/assets/javascripts/hide_show.js
smklib-1.1.1 app/assets/javascripts/hide_show.js
smklib-1.1.0 app/assets/javascripts/hide_show.js
smklib-1.0.6 app/assets/javascripts/hide_show.js