diff options
author | Igor Wiedler <igor@wiedler.ch> | 2012-02-08 19:03:30 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:24 +0200 |
commit | d53c36684db5ee592b871f518364ae9de03d3e8b (patch) | |
tree | 5c028a43a4ac667679bcbe4f98b503d47b99d981 | |
parent | 628074bf7057ad5f9aff929d7c8cd85171ce60b8 (diff) | |
download | forums-d53c36684db5ee592b871f518364ae9de03d3e8b.tar forums-d53c36684db5ee592b871f518364ae9de03d3e8b.tar.gz forums-d53c36684db5ee592b871f518364ae9de03d3e8b.tar.bz2 forums-d53c36684db5ee592b871f518364ae9de03d3e8b.tar.xz forums-d53c36684db5ee592b871f518364ae9de03d3e8b.zip |
[feature/ajax] JavaScript strict mode
PHPBB3-10270
-rw-r--r-- | phpBB/adm/style/ajax.js | 1 | ||||
-rw-r--r-- | phpBB/assets/javascript/core.js | 2 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js index 2725d9fa0a..9b73b618d6 100644 --- a/phpBB/adm/style/ajax.js +++ b/phpBB/adm/style/ajax.js @@ -1,5 +1,6 @@ (function($) { // Avoid conflicts with other libraries +"use strict"; /** * The following callbacks are for reording forums in acp_forums. forum_down diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 9c5f507bb8..742aa05115 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -3,6 +3,8 @@ phpbb.alert_time = 100; (function($) { // Avoid conflicts with other libraries +"use strict"; + // define a couple constants for keydown functions. var keymap = { ENTER: 13, diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index bf7551b8b8..3e431a0c6e 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -1,5 +1,6 @@ (function($) { // Avoid conflicts with other libraries +"use strict"; // This callback finds the post from the delete link, and removes it. phpbb.add_ajax_callback('post_delete', function() { |