aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-11-11 13:36:14 +0000
committerplegall <plg@piwigo.org>2013-11-11 13:36:14 +0000
commit1f4e4b947db3a30690edac4faac5c2ed0c4cdf00 (patch)
treecdc67bccef5390fdff4d546d3dee2e612ef6e33f /admin/themes/default/template
parent0ccfcb82051eeedbf5cc54eb3978316594417a4d (diff)
feature 1668: visual enhancement for user manager redesign. Appropriate
(fontello) icons for open/close user details, appropriate colors for DataTables. git-svn-id: http://piwigo.org/svn/trunk@25457 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template')
-rw-r--r--admin/themes/default/template/user_list.tpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl
index 630f86573..3ccc3b975 100644
--- a/admin/themes/default/template/user_list.tpl
+++ b/admin/themes/default/template/user_list.tpl
@@ -267,16 +267,16 @@ jQuery(document).ready(function() {
* Note that the indicator for showing which row is open is not controlled by DataTables,
* rather it is done here
*/
- jQuery(document).on('click', '#userList tbody td img', function() {
+ jQuery(document).on('click', '#userList tbody td .openUserDetails', function() {
var nTr = this.parentNode.parentNode;
- if ( this.src.match('details_close') ) {
+ if (jQuery(this).hasClass('icon-angle-circled-up')) {
/* This row is already open - close it */
- this.src = "admin/themes/default/icon/details_open.png";
+ jQuery(this).removeClass('icon-angle-circled-up').addClass('icon-angle-circled-down').attr('title', 'Open user details');
oTable.fnClose( nTr );
}
else {
/* Open this row */
- this.src = "admin/themes/default/icon/details_close.png";
+ jQuery(this).removeClass('icon-angle-circled-down').addClass('icon-angle-circled-up').attr('title', 'Close user details');
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
}
});
@@ -289,7 +289,7 @@ jQuery(document).ready(function() {
},
{
"mRender": function(data, type, full) {
- return '<img src="admin/themes/default/icon/details_open.png"> <label><input type="checkbox" data-user_id="'+full[0]+'"> '+data+'</label>';
+ return '<span title="Open user details" class="icon-angle-circled-down openUserDetails"></span> <label><input type="checkbox" data-user_id="'+full[0]+'"> '+data+'</label>';
}
}
];
@@ -548,7 +548,7 @@ span.infos, span.errors {background-image:none; padding:2px 5px; margin:0;border
</div>
<p class="showCreateAlbum" id="showAddUser">
- <a href="#" id="addUser">{'Add a user'|translate}</a>
+ <a href="#" id="addUser" class="icon-plus-circled">{'Add a user'|translate}</a>
<span class="infos" style="display:none"></span>
</p>