mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Warn a user when removing a speed dial
This commit is contained in:
parent
4997ce7f29
commit
af9f43efb0
|
@ -284,6 +284,7 @@ function setBoxTitle(id, title) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeBox(id) {
|
function removeBox(id) {
|
||||||
|
if (confirm("%TITLE-WARN%"))
|
||||||
var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
|
var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
|
||||||
if (box === undefined)
|
if (box === undefined)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -262,6 +262,7 @@ QString QupZillaSchemeReply::speeddialPage()
|
||||||
dPage.replace("%TITLE-EDIT%", tr("Edit"));
|
dPage.replace("%TITLE-EDIT%", tr("Edit"));
|
||||||
dPage.replace("%TITLE-REMOVE%", tr("Remove"));
|
dPage.replace("%TITLE-REMOVE%", tr("Remove"));
|
||||||
dPage.replace("%TITLE-RELOAD%", tr("Reload"));
|
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("%TITLE-FETCHTITLE%", tr("Load title from page"));
|
||||||
dPage.replace("%JQUERY%", "qrc:html/jquery.js");
|
dPage.replace("%JQUERY%", "qrc:html/jquery.js");
|
||||||
dPage.replace("%JQUERY-UI%", "qrc:html/jquery-ui.js");
|
dPage.replace("%JQUERY-UI%", "qrc:html/jquery-ui.js");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user