mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 06:20:46 +02:00
[feature/ajax] JavaScript strict mode
PHPBB3-10270
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
(function($) { // Avoid conflicts with other libraries
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following callbacks are for reording forums in acp_forums. forum_down
|
* The following callbacks are for reording forums in acp_forums. forum_down
|
||||||
|
@@ -3,6 +3,8 @@ phpbb.alert_time = 100;
|
|||||||
|
|
||||||
(function($) { // Avoid conflicts with other libraries
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// define a couple constants for keydown functions.
|
// define a couple constants for keydown functions.
|
||||||
var keymap = {
|
var keymap = {
|
||||||
ENTER: 13,
|
ENTER: 13,
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
(function($) { // Avoid conflicts with other libraries
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// This callback finds the post from the delete link, and removes it.
|
// This callback finds the post from the delete link, and removes it.
|
||||||
phpbb.add_ajax_callback('post_delete', function() {
|
phpbb.add_ajax_callback('post_delete', function() {
|
||||||
|
Reference in New Issue
Block a user