Fixed JS and CSS issues in users page

- Renamed "delete" to "deleteEntry" to make IE8 happy.
- Added missing "svg" class for the "+" button
- Added height to "+" button but was unable to properly align it
This commit is contained in:
Vincent Petry 2014-07-17 13:13:03 +02:00
parent d58c8d72cf
commit 4d5ebe61c4
5 changed files with 11 additions and 6 deletions

View File

@ -54,6 +54,11 @@ table.nostyle td { padding: 0.2em 0; }
position: absolute; left: 12px; top:-2px;
content: '+'; font-weight: bold; font-size: 150%;
}
.ie8 #newgroup-form .icon-add {
height: 30px;
}
.usercount { float: left; margin: 5px; }
li.active span.utils .delete {
float: left; position: relative; opacity: 0.5;

View File

@ -116,7 +116,7 @@ DeleteHandler.prototype.hideNotification = function() {
*/
DeleteHandler.prototype.mark = function(oid) {
if(this.oidToDelete !== false) {
this.delete();
this.deleteEntry();
}
this.oidToDelete = oid;
this.canceled = false;
@ -138,7 +138,7 @@ DeleteHandler.prototype.cancel = function() {
* OC.dialogs.alert. On success, a callback is fired so that the client can
* update the web interface accordingly.
*/
DeleteHandler.prototype.delete = function() {
DeleteHandler.prototype.deleteEntry = function() {
if(this.canceled || this.oidToDelete === false) {
return false;
}

View File

@ -237,7 +237,7 @@ GroupList = {
//delete a marked user when leaving the page
$(window).on('beforeunload', function () {
GroupDeleteHandler.delete();
GroupDeleteHandler.deleteEntry();
});
},

View File

@ -306,7 +306,7 @@ var UserList = {
//delete a marked user when leaving the page
$(window).on('beforeunload', function () {
UserDeleteHandler.delete();
UserDeleteHandler.deleteEntry();
});
},
update: function (gid) {

View File

@ -5,10 +5,10 @@
<span><?php p($l->t('Add Group'))?></span>
</a>
</li>
<li id="newgroup-form">
<li id="newgroup-form" style="display: none">
<form>
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group')); ?>..." />
<input type="submit" class="button icon-add" value="" />
<input type="submit" class="button icon-add svg" value="" />
</form>
</li>
<!-- Everyone -->