mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[feature/ajax] JavaScript strict mode
PHPBB3-10270
This commit is contained in:
parent
628074bf70
commit
d53c36684d
3 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue