Added localization for delete confirmation dialog
This commit is contained in:
parent
839cd9ed48
commit
56cfe58c0a
8 changed files with 34 additions and 18 deletions
|
|
@ -180,9 +180,8 @@ foreach ($plugins as $plugin) {
|
|||
|
||||
$('#delete-build').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(
|
||||
"<?= APP_URL; ?>build/delete/<?= $build->getId(); ?>", "Build"
|
||||
).onCloseConfirmed = function () {window.location = '<?= APP_URL; ?>project/view/<?= $build->getProjectId(); ?>'};
|
||||
confirmDelete("<?= APP_URL; ?>build/delete/<?= $build->getId(); ?>")
|
||||
.onCloseConfirmed = function () {window.location = '<?= APP_URL; ?>project/view/<?= $build->getProjectId(); ?>'};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ switch($build->getStatus())
|
|||
$(document).ready(function() {
|
||||
$('.delete-build').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "Build").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href)
|
||||
.onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
$(document).ready(function() {
|
||||
$('.delete-group').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "Group").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href).onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
@ -164,9 +164,8 @@ print '</ul></div>';
|
|||
$(function() {
|
||||
$('#delete-project').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(
|
||||
"<?= APP_URL; ?>project/delete/<?= $project->getId(); ?>", "Project"
|
||||
).onCloseConfirmed = function () {window.location = '/'};
|
||||
confirmDelete("<?= APP_URL; ?>project/delete/<?= $project->getId(); ?>")
|
||||
.onCloseConfirmed = function () {window.location = '/'};
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@
|
|||
$(document).ready(function() {
|
||||
$('.delete-user').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "User").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href)
|
||||
.onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue