Changeset 80

Show
Ignore:
Timestamp:
2009年03月13日 22时16分25秒 (3 years ago)
Author:
jiangx
Message:

Fixed #22: In authz controller, can not change repos admin without select a module path.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysvnmanager/templates/authz/index.mako

    r63 r80  
    468468        } 
    469469 
    470         if (form.authz_list.length>0 && path =='') 
     470 
     471        if (reposname == '') 
     472        { 
     473                alert('${_("Please input repository name.")}'); 
     474                return false; 
     475        } 
     476 
     477        if (mode1 == 'new' && path == '' && admins == '') 
     478        { 
     479                alert('${_("Save failed.")}'); 
     480                return false; 
     481        } 
     482 
     483        if (mode2 == 'new' && path =='') 
    471484        { 
    472485                alert('${_("Please input module path.")}'); 
    473486                return false; 
    474487        } 
    475          
    476         if (reposname == '') 
    477         { 
    478                 alert('${_("Please input repository name.")}'); 
    479                 return false; 
    480         } 
    481         if (mode1 == 'new' && path == '' && admins == '') 
    482         { 
    483                 alert('${_("Save failed.")}'); 
    484                 return false; 
    485         } 
    486                          
     488 
    487489        var params = {reposname:reposname, admins:admins, path:path, rules:rules, mode1:mode1, mode2:mode2, revision:revision}; 
    488490        showNoticesPopup();