Ignore:
Timestamp:
06/20/05 13:40:55 (14 years ago)
Author:
gocher
Message:

new elements for plugin forms
file, fieldset, label

and for existing elements more attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Forms/popups/textarea.html

    r200 r236  
    1919    case "f_readonly":  
    2020    case "f_disabled": 
    21       document.getElementById(fields[i]).checked = param[fields[i]]; break; 
     21      document.getElementById(fields[i]).checked = param[fields[i]]=="true"; break; 
    2222    default: 
    2323      document.getElementById(fields[i]).value = param[fields[i]]; break; 
     
    2828 
    2929function onOK() { 
    30         var d = document; 
    31         var el = d.getElementById("f_name"); 
     30        var el = document.getElementById("f_name"); 
    3231        if (!el.value) { 
    3332        alert("You must enter a Name"); 
     
    4140    case "f_readonly":  
    4241    case "f_disabled": 
    43       param[fields[i]] = document.getElementById(fields[i]).checked; break; 
     42      param[fields[i]] = (document.getElementById(fields[i]).checked)?"true":""; break; 
    4443    default: 
    4544      param[fields[i]] = document.getElementById(fields[i]).value; break; 
Note: See TracChangeset for help on using the changeset viewer.