fix creating users

This commit is contained in:
Robin Appelman 2011-08-13 23:56:33 +02:00
parent bd12bdfe56
commit 4f43b0a729
2 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ $(document).ready(function(){
return false; return false;
} }
$.post( $.post(
OC.filePath('admin','ajax','togglegroups.php'), OC.filePath('settings','ajax','togglegroups.php'),
{ {
username:user, username:user,
group:group group:group
@ -36,7 +36,7 @@ $(document).ready(function(){
$('td.remove>img').live('click',function(event){ $('td.remove>img').live('click',function(event){
var uid=$(this).parent().parent().data('uid'); var uid=$(this).parent().parent().data('uid');
$.post( $.post(
OC.filePath('admin','ajax','removeuser.php'), OC.filePath('settings','ajax','removeuser.php'),
{username:uid}, {username:uid},
function(result){ function(result){
@ -57,7 +57,7 @@ $(document).ready(function(){
if(event.keyCode == 13) { if(event.keyCode == 13) {
if($(this).val().length>0){ if($(this).val().length>0){
$.post( $.post(
OC.filePath('admin','ajax','changepassword.php'), OC.filePath('settings','ajax','changepassword.php'),
{username:uid,password:$(this).val()}, {username:uid,password:$(this).val()},
function(result){} function(result){}
); );
@ -82,7 +82,7 @@ $(document).ready(function(){
var password=$('#newuserpassword').val(); var password=$('#newuserpassword').val();
var groups=$('#newusergroups').prev().children('div').data('settings').checked; var groups=$('#newusergroups').prev().children('div').data('settings').checked;
$.post( $.post(
OC.filePath('admin','ajax','createuser.php'), OC.filePath('settings','ajax','createuser.php'),
{ {
username:username, username:username,
password:password, password:password,
@ -104,7 +104,7 @@ $(document).ready(function(){
}); });
tr.find('td.groups').append(select); tr.find('td.groups').append(select);
if(tr.find('td.remve img').length==0){ if(tr.find('td.remve img').length==0){
tr.find('td.remove').append($('<img alt="Remove" title="'+t('admin','Remove')+'" class="svg action" src="'+OC.imagePath('core','actions/delete')+'"/>')); tr.find('td.remove').append($('<img alt="Remove" title="'+t('settings','Remove')+'" class="svg action" src="'+OC.imagePath('core','actions/delete')+'"/>'));
} }
applyMultiplySelect(select); applyMultiplySelect(select);
$('#content table tr').last().after(tr); $('#content table tr').last().after(tr);

View File

@ -22,7 +22,7 @@ foreach($_["groups"] as $group) {
<td class="name"><?php echo $user["name"]; ?></td> <td class="name"><?php echo $user["name"]; ?></td>
<td class="password"> <td class="password">
<span>●●●●●●●</span> <span>●●●●●●●</span>
<img class="svg action" src="<?php echo image_path('core','actions/rename')?>"/> <img class="svg action" src="<?php echo image_path('core','actions/rename.svg')?>"/>
</td> </td>
<td class="groups"> <td class="groups">
<select data-username="<?php echo $user['name'] ;?>" data-user-groups="<?php echo $user['groups'] ;?>" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple"> <select data-username="<?php echo $user['name'] ;?>" data-user-groups="<?php echo $user['groups'] ;?>" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple">
@ -33,7 +33,7 @@ foreach($_["groups"] as $group) {
</td> </td>
<td class="remove"> <td class="remove">
<?php if($user['name']!=OC_User::getUser()):?> <?php if($user['name']!=OC_User::getUser()):?>
<img alt="Remove" title="<?php echo $l->t('Remove')?>" class="svg action" src="<?php echo image_path('core','actions/delete') ?>" /> <img alt="Remove" title="<?php echo $l->t('Remove')?>" class="svg action" src="<?php echo image_path('core','actions/delete.svg') ?>" />
<?php endif;?> <?php endif;?>
</td> </td>
</tr> </tr>