[Pkg-owncloud-commits] [owncloud] 48/59: Fixed JS and CSS issues in users page
David Prévot
taffit at moszumanska.debian.org
Fri Jul 18 16:19:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit e2f2313eb5a18529f80598e6c4a5756c47aafbe1
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Jul 17 13:13:03 2014 +0200
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
---
settings/css/settings.css | 5 +++++
settings/js/users/deleteHandler.js | 4 ++--
settings/js/users/groups.js | 2 +-
settings/js/users/users.js | 2 +-
settings/templates/users/part.grouplist.php | 4 ++--
5 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/settings/css/settings.css b/settings/css/settings.css
index 7dbaf83..b9ce79b 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -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;
diff --git a/settings/js/users/deleteHandler.js b/settings/js/users/deleteHandler.js
index 5635531..d4736d8 100644
--- a/settings/js/users/deleteHandler.js
+++ b/settings/js/users/deleteHandler.js
@@ -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;
}
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index b4cf73c..58f7770 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -237,7 +237,7 @@ GroupList = {
//delete a marked user when leaving the page
$(window).on('beforeunload', function () {
- GroupDeleteHandler.delete();
+ GroupDeleteHandler.deleteEntry();
});
},
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index ba22890..9eb8f91 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -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) {
diff --git a/settings/templates/users/part.grouplist.php b/settings/templates/users/part.grouplist.php
index c5e85fa..255f2a6 100644
--- a/settings/templates/users/part.grouplist.php
+++ b/settings/templates/users/part.grouplist.php
@@ -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 -->
--
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