mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-03 14:32:33 +02:00
Update tinyfilemanager.php
Added text translation
This commit is contained in:
parent
f30719d948
commit
f2f2f4a330
|
@ -4029,8 +4029,8 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||||
url: window.location,
|
url: window.location,
|
||||||
data: JSON.stringify(data),
|
data: JSON.stringify(data),
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function(mes){toast("Saved Successfully"); window.onbeforeunload = function() {return}},
|
success: function(mes){toast("<?php echo lng("Saved Successfully"); ?>"); window.onbeforeunload = function() {return}},
|
||||||
failure: function(mes) {toast("Error: try again");},
|
failure: function(mes) {toast("<?php echo lng("Error: try again"); ?>");},
|
||||||
error: function(mes) {toast(`<p style="background-color:red">${mes.responseText}</p>`);}
|
error: function(mes) {toast(`<p style="background-color:red">${mes.responseText}</p>`);}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue