Jeremy Schomery 2017-03-13 17:11:01 +03:30
parent 65845c6c6e
commit 52d3387c6a
24 changed files with 30 additions and 21 deletions

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -137,7 +137,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -213,7 +213,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -169,7 +169,7 @@
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmOK": { "confirmOK": {
"message": "OK" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"

View File

@ -254,6 +254,12 @@ body>div:not(#installed) {
flex: 1; flex: 1;
padding: 0 10px; padding: 0 10px;
} }
#confirm>div>b {
padding: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#confirm>div>div { #confirm>div>div {
padding: 10px; padding: 10px;
direction: rtl; direction: rtl;

View File

@ -70,6 +70,7 @@
<!-- confirm --> <!-- confirm -->
<div id="confirm"> <div id="confirm">
<div> <div>
<b>Style's Name</b>
<span i18n-text="deleteStyleConfirm"></span> <span i18n-text="deleteStyleConfirm"></span>
<div> <div>
<input type="button" i18n-value="confirmOK" data-cmd="ok"> <input type="button" i18n-value="confirmOK" data-cmd="ok">

View File

@ -118,6 +118,8 @@ function enable(event, enabled) {
function doDelete() { function doDelete() {
document.getElementById('confirm').dataset.display = true; document.getElementById('confirm').dataset.display = true;
let id = getId(event); let id = getId(event);
document.querySelector('#confirm b').textContent =
document.querySelector(`[style-id="${id}"] label`).textContent;
document.getElementById('confirm').dataset.id = id; document.getElementById('confirm').dataset.id = id;
} }