override default JS dialog handling (which is broken in Lollipop)
should fix #970
This commit is contained in:
17
mobile/res/values/strings_js.xml
Normal file
17
mobile/res/values/strings_js.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Title for a JavaScript dialog. "The page at <url of current page> says:" -->
|
||||
<string name="js_dialog_title">The page at \"%s\" says:</string>
|
||||
<!-- Default title for a javascript dialog -->
|
||||
<string name="js_dialog_title_default">JavaScript</string>
|
||||
<!-- Title for the unload javascript dialog -->
|
||||
<string name="js_dialog_before_unload_title">Confirm Navigation</string>
|
||||
<!-- Text for the positive button on the unload javascript dialog -->
|
||||
<string name="js_dialog_before_unload_positive_button">Leave this Page</string>
|
||||
<!-- Text for the negative button on the unload javascript dialog -->
|
||||
<string name="js_dialog_before_unload_negative_button">Stay on this Page</string>
|
||||
<!-- Message in a javascript dialog asking if the user wishes to leave the current page -->
|
||||
<string name="js_dialog_before_unload">%s\n\nAre you sure you want to navigate away from this page?</string>
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user