Changeset 6057


Ignore:
Timestamp:
05/03/10 23:24:34 (9 years ago)
Author:
plg
Message:

bug 1642 fixed: if no category exists, prevent from selecting an existing
category (before form submission).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r5931 r6057  
    4848    } 
    4949 
     50  } 
     51 
     52  if ($("select[name=category] option").length == 0) { 
     53    $('input[name=category_type][value=existing]').attr('disabled', true); 
     54    $('input[name=category_type]').attr('checked', false); 
     55    $('input[name=category_type][value=new]').attr('checked', true); 
    5056  } 
    5157 
Note: See TracChangeset for help on using the changeset viewer.