[Pkg-owncloud-commits] [owncloud] 105/394: Always have the username as string in user admin
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:38 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit a12d3834d4bb87b1b05b2dd3501e3781e308104b
Author: Bart Visscher <bartv at thisnet.nl>
Date: Wed Nov 14 21:28:23 2012 +0100
Always have the username as string in user admin
---
settings/js/users.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/settings/js/users.js b/settings/js/users.js
index 5c7357c..0f32143 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -67,7 +67,7 @@ var UserList={
add:function(username, groups, subadmin, quota, sort) {
var tr = $('tbody tr').first().clone();
- tr.data('uid', username);
+ tr.attr('data-uid', username);
tr.find('td.name').text(username);
var groupsSelect = $('<select multiple="multiple" class="groupsselect" data-placehoder="Groups" title="Groups">');
groupsSelect.data('username', username);
@@ -265,7 +265,7 @@ $(document).ready(function(){
$('td.remove>a').live('click',function(event){
var row = $(this).parent().parent();
- var uid = $(row).data('uid');
+ var uid = $(row).attr('data-uid');
$(row).hide();
// Call function for handling delete/undo
UserList.do_delete(uid);
@@ -274,7 +274,7 @@ $(document).ready(function(){
$('td.password>img').live('click',function(event){
event.stopPropagation();
var img=$(this);
- var uid=img.parent().parent().data('uid');
+ var uid=img.parent().parent().attr('data-uid');
var input=$('<input type="password">');
img.css('display','none');
img.parent().children('span').replaceWith(input);
@@ -304,7 +304,7 @@ $(document).ready(function(){
$('select.quota, select.quota-user').live('change',function(){
var select=$(this);
- var uid=$(this).parent().parent().parent().data('uid');
+ var uid=$(this).parent().parent().parent().attr('data-uid');
var quota=$(this).val();
var other=$(this).next();
if(quota!='other'){
@@ -322,7 +322,7 @@ $(document).ready(function(){
})
$('input.quota-other').live('change',function(){
- var uid=$(this).parent().parent().parent().data('uid');
+ var uid=$(this).parent().parent().parent().attr('data-uid');
var quota=$(this).val();
var select=$(this).prev();
var other=$(this);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list