Attachment 'theme_init.patch'

Download

   1 --- theme/__init__.py   2006-04-15 13:09:38.000000000 -0600
   2 +++ theme.new/__init__.py       2006-05-05 11:41:12.000000000 -0600
   3 @@ -728,14 +728,16 @@
   4      var value = e.value.replace(/\s+/, '');
   5      if (value == '' || searchIsDisabled) {
   6 -        searchSetDisabled(true);
   7 +        formSetDisabled(e.form,true);
   8      } else {
   9 -        searchSetDisabled(false);
  10 +        formSetDisabled(e.form,false);
  11      }
  12  }
  13 
  14 -function searchSetDisabled(flag) {
  15 -    // Enable or disable search
  16 -    document.getElementById('fullsearch').disabled = flag;
  17 -    document.getElementById('titlesearch').disabled = flag;
  18 +function formSetDisabled(theform,flag) {
  19 +    for (i = 0; i < theform.length; i++) {
  20 +        var tempobj = theform.elements[i];
  21 +        if (tempobj.type.toLowerCase() == "submit")
  22 +            tempobj.disabled = flag;
  23 +    }
  24  }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-06-01 14:42:13, 0.8 KB) [[attachment:theme_init.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.