]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed JS and CSS issues in users page
authorVincent Petry <pvince81@owncloud.com>
Thu, 17 Jul 2014 11:13:03 +0000 (13:13 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 17 Jul 2014 11:13:03 +0000 (13:13 +0200)
- 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

settings/css/settings.css
settings/js/users/deleteHandler.js
settings/js/users/groups.js
settings/js/users/users.js
settings/templates/users/part.grouplist.php

index 7dbaf830096d37a7852f413629ae6fb074cf22fd..b9ce79bc3b8398e046e34b0f4471228a69f2071d 100644 (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;
index 56355317f8d144a3a257502c36ae01e2ee801c6c..d4736d88701f8fa6ac4455ed656820c9720290ae 100644 (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;
        }
index b4cf73c59f28f55a726f4140ba3352eef27e5805..58f77705121dac9debcf5050b3de9a76bea83993 100644 (file)
@@ -237,7 +237,7 @@ GroupList = {
 
                //delete a marked user when leaving the page
                $(window).on('beforeunload', function () {
-                       GroupDeleteHandler.delete();
+                       GroupDeleteHandler.deleteEntry();
                });
        },
 
index ba228905a8aadb9289bc180532f8cb26a86af7f2..9eb8f91ac7c75f5b8bf563479330bcf9049ce816 100644 (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) {
index c5e85fa353467edf2b4a6be10e1647c32c100b07..255f2a6cf4550b3da5f913b64dc99cb549c7095c 100644 (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 -->