Login   Register  
PHP Classes
elePHPant
Icontem

File: js/visibilityElements.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vaclav Mares  >  ontoProdukt  >  js/visibilityElements.js  >  Download  
File: js/visibilityElements.js
Role: Auxiliary data
Content type: text/plain
Description: visibilityElements.js
Class: ontoProdukt
Generate product feeds in XML formats
Author: By
Last change:
Date: 3 years ago
Size: 1,843 bytes
 

Contents

Class file image Download
// JavaScript Document

function SetVisible() {

if(document.makeData.availability.checked)
{
document.makeData.textname2.disabled=true;
document.makeData.textname3.disabled=true;
document.makeData.textname4.disabled=true;
document.makeData.textname5.disabled=true;
}

else
{
document.makeData.textname2.disabled=false;
document.makeData.textname3.disabled=false;
document.makeData.textname4.disabled=false;
document.makeData.textname5.disabled=false;
}
}

function SetVisibleUpload() {

if(document.setFormat.new_feed.checked)
{
document.setFormat.old_feed_file.checked = false;
document.setFormat.file.disabled=true;
document.setFormat.old_feed_URL.checked = false;
document.setFormat.url_feed.disabled=true;   
//document.setFormat.fileFormat.disabled=true; 
} 
else
{
document.setFormat.file.disabled=true; 
//document.setFormat.fileFormat.disabled=true;
document.setFormat.new_feed.checked = true;
document.setFormat.old_feed_file.checked = false;
}
}

function SetVisibleUpload2() {
if(document.setFormat.old_feed_file.checked)
{
document.setFormat.file.disabled=false;  
document.setFormat.new_feed.checked = false;
document.setFormat.old_feed_URL.checked = false;
document.setFormat.url_feed.disabled=true; 
}
else
{
document.setFormat.old_feed_file.checked = true;
document.setFormat.new_feed.checked = false;
document.setFormat.file.disabled=false;  

}
}

function SetVisibleUpload3() {
if(document.setFormat.old_feed_URL.checked)
{
document.setFormat.url_feed.disabled=false;  
document.setFormat.file.disabled=true;  
document.setFormat.new_feed.checked = false;
document.setFormat.old_feed_file.checked = false;
}
else
{
document.setFormat.old_feed_URL.checked = true;
document.setFormat.new_feed.checked = false;
document.setFormat.file.disabled=true;  
}
}