From: umorigu Date: Sun, 5 Nov 2017 23:15:18 +0000 (+0900) Subject: BugTrack/2453 Show alert message for leaving page action on editing X-Git-Tag: r1_5_4~142 X-Git-Url: http://git.osdn.net/view?p=pukiwiki%2Fpukiwiki.git;a=commitdiff_plain;h=dcc6b19cb04618da87a41965a10db2f48b37c25e BugTrack/2453 Show alert message for leaving page action on editing --- diff --git a/en.lng.php b/en.lng.php index 35ed906..3d6dfb4 100644 --- a/en.lng.php +++ b/en.lng.php @@ -59,6 +59,9 @@ $_msg_unsupported_webbrowser = 'This function doesn\'t support your current Web $_msg_use_alternative_link = 'Please go to the following link destination: $1'; $_msg_general_error = 'An error occurred while processing.'; +$_msg_edit_cancel_confirm = 'The text you have entered will be discarded. Is it OK?'; +$_msg_edit_unloadbefore_message = 'Data you have entered will not be saved.'; + /////////////////////////////////////// // Symbols $_symbol_anchor = '†'; diff --git a/ja.lng.php b/ja.lng.php index 4f587af..e0fb800 100644 --- a/ja.lng.php +++ b/ja.lng.php @@ -61,6 +61,9 @@ $_msg_unsupported_webbrowser = 'この機能はお使いのWebブラウザには $_msg_use_alternative_link = 'リンク先の機能をご利用ください: $1'; $_msg_general_error = '処理中にエラーが発生しました。'; +$_msg_edit_cancel_confirm = '編集中のテキストは破棄されます。よろしいですか ?'; +$_msg_edit_unloadbefore_message = '入力したデータは保存されません。'; + /////////////////////////////////////// // Symbols $_symbol_anchor = '†'; diff --git a/lib/html.php b/lib/html.php index d890464..41d53e9 100644 --- a/lib/html.php +++ b/lib/html.php @@ -218,7 +218,7 @@ function _decorate_Nth_word($matches) */ function get_html_scripting_data() { - global $ticket_link_sites; + global $ticket_link_sites, $plugin; if (!isset($ticket_link_sites) || !is_array($ticket_link_sites)) { return ''; } @@ -243,6 +243,11 @@ EOS; $site_props = << EOS; + $h_plugin = htmlsc($plugin); + $plugin_prop = << +EOS; + // AutoTicketLink $filtered_ticket_link_sites = array(); foreach ($ticket_link_sites as $s) { @@ -259,6 +264,7 @@ EOS; $data = <<