1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Warn a user when removing a speed dial

This commit is contained in:
Mladen Pejaković 2012-07-26 13:23:10 +02:00
parent 4997ce7f29
commit af9f43efb0
2 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,7 @@ function setBoxTitle(id, title) {
}
function removeBox(id) {
if (confirm("%TITLE-WARN%"))
var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
if (box === undefined)
return;

View File

@ -262,6 +262,7 @@ QString QupZillaSchemeReply::speeddialPage()
dPage.replace("%TITLE-EDIT%", tr("Edit"));
dPage.replace("%TITLE-REMOVE%", tr("Remove"));
dPage.replace("%TITLE-RELOAD%", tr("Reload"));
dPage.replace("%TITLE-WARN%", tr("Are you sure to remove this speed dial?"));
dPage.replace("%TITLE-FETCHTITLE%", tr("Load title from page"));
dPage.replace("%JQUERY%", "qrc:html/jquery.js");
dPage.replace("%JQUERY-UI%", "qrc:html/jquery-ui.js");