mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
related to #1485 edit own status not allowed and cancel plugin title adaptation
This commit is contained in:
@@ -9,7 +9,7 @@ function setDisplayClassic() {
|
||||
|
||||
$(".pluginMiniBoxNameCell").removeClass("pluginMiniBoxNameCellCompact");
|
||||
|
||||
normalTitle();
|
||||
// normalTitle();
|
||||
}
|
||||
|
||||
function setDisplayCompact() {
|
||||
@@ -23,7 +23,7 @@ function setDisplayCompact() {
|
||||
|
||||
$(".pluginMiniBoxNameCell").addClass("pluginMiniBoxNameCellCompact");
|
||||
|
||||
reduceTitle()
|
||||
// reduceTitle()
|
||||
}
|
||||
|
||||
function setDisplayLine() {
|
||||
@@ -34,7 +34,7 @@ function setDisplayLine() {
|
||||
$(".pluginDescCompact").hide();
|
||||
$(".pluginActions").show();
|
||||
$(".pluginActionsSmallIcons").hide();
|
||||
normalTitle();
|
||||
// normalTitle();
|
||||
}
|
||||
|
||||
function reduceTitle() {
|
||||
|
||||
@@ -1198,19 +1198,15 @@ function fill_user_edit_permissions(user_to_edit, pop_in) {
|
||||
pop_in.find(".user-property-username .edit-username").show();
|
||||
}
|
||||
} else {
|
||||
// I'm the connected user, I can do whatever I want on my profile but kill myself (Suicide is not allowed)
|
||||
// I'm the connected user, I can do whatever I want on my profile but kill myself (Suicide is not allowed) and edit my status
|
||||
pop_in.find(".delete-user-button").hide();
|
||||
pop_in.find(".user-property-password.edit-password").show();
|
||||
pop_in.find(".user-property-email .user-property-input").removeAttr('disabled');
|
||||
pop_in.find(".user-property-status .user-property-select").removeClass("notClickable");
|
||||
pop_in.find(".user-property-status .user-property-select").addClass("notClickable");
|
||||
pop_in.find(".user-property-username .edit-username").show();
|
||||
|
||||
// I'm an administrator, I can't edit my status
|
||||
if (connected_user_status == "admin") {
|
||||
pop_in.find(".user-property-status .user-property-select").addClass("notClickable");
|
||||
}
|
||||
}
|
||||
|
||||
$(".notClickableBefore").removeClass("notClickableBefore");
|
||||
$(".notClickable").parent().addClass("notClickableBefore");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user