Skip to content
Snippets Groups Projects
Commit b923637c authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

init

parent c269953d
No related branches found
No related tags found
No related merge requests found
Pipeline #6305 passed with warnings
......@@ -15,9 +15,11 @@ class AjaxHandler implements HookablePluginDependant
use PluginAccess;
const SCRIPTS_VERSION = '1';
const POST_FIELD_NOTICE_NAME = 'notice-name';
const SCRIPTS_VERSION = '1';
const SCRIPT_HANDLE = 'wpdesk_notice';
/**
* @var string
*/
......@@ -49,11 +51,12 @@ class AjaxHandler implements HookablePluginDependant
{
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
wp_register_script(
'wpdesk_notice',
self::SCRIPT_HANDLE,
trailingslashit($this->assetsURL) . 'js/' . $suffix . '.js',
array( 'jquery' ),
self::SCRIPTS_VERSION
);
wp_enqueue_script(self::SCRIPT_HANDLE);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment