aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/user_list.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-12-26 12:26:22 +0000
committerplegall <plg@piwigo.org>2013-12-26 12:26:22 +0000
commita3fd9b692bff4116d08c290643b72819e2c99e6f (patch)
treed68dd8fcdb597f78a10bc3c3298ef83bc3cc30ca /admin/themes/default/template/user_list.tpl
parent905cf523ec66a2b6045959b697b483569ca79431 (diff)
feature 1668: change the link text to "close" (with the appropriate icon) when user profile is open.
git-svn-id: http://piwigo.org/svn/trunk@26230 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/user_list.tpl')
-rw-r--r--admin/themes/default/template/user_list.tpl20
1 files changed, 16 insertions, 4 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl
index 9cf9e3ac5..36e2daa16 100644
--- a/admin/themes/default/template/user_list.tpl
+++ b/admin/themes/default/template/user_list.tpl
@@ -590,14 +590,26 @@ jQuery(document).ready(function() {
*/
jQuery(document).on('click', '#userList tbody td .openUserDetails', function() {
var nTr = this.parentNode.parentNode;
- if (jQuery(this).hasClass('icon-angle-circled-up')) {
+ if (jQuery(this).hasClass('icon-cancel-circled')) {
/* This row is already open - close it */
- jQuery(this).removeClass('icon-angle-circled-up').addClass('icon-angle-circled-down').attr('title', 'Open user details');
+ jQuery(this)
+ .removeClass('icon-cancel-circled')
+ .addClass('icon-pencil')
+ .attr('title', "{/literal}{'Open user details'|translate|escape:'javascript'}{literal}")
+ .html("{/literal}{'edit'|translate|escape:'javascript'}{literal}")
+ ;
+
oTable.fnClose( nTr );
}
else {
/* Open this row */
- jQuery(this).removeClass('icon-angle-circled-down').addClass('icon-angle-circled-up').attr('title', 'Close user details');
+ jQuery(this)
+ .removeClass('icon-pencil')
+ .addClass('icon-cancel-circled')
+ .attr('title', "{/literal}{'Close user details'|translate|escape:'javascript'}{literal}")
+ .html("{/literal}{'close'|translate|escape:'javascript'}{literal}")
+ ;
+
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
}
});
@@ -610,7 +622,7 @@ jQuery(document).ready(function() {
},
{
"mRender": function(data, type, full) {
- return '<label><input type="checkbox" data-user_id="'+full[0]+'"> '+data+'</label> <a title="Open user details" class="icon-angle-circled-down openUserDetails">{/literal}{'edit'|translate}{literal}</a>';
+ return '<label><input type="checkbox" data-user_id="'+full[0]+'"> '+data+'</label> <a title="{/literal}{'Open user details'|translate|escape:'javascript'}{literal}" class="icon-pencil openUserDetails">{/literal}{'edit'|translate}{literal}</a>';
}
}
];