Commit 7a0bc135 authored by Dave Lane's avatar Dave Lane
Browse files

tidying up filenames to help keep the namespace well defined, and turned off JS and PHP debugging

parent a60290db
......@@ -58,7 +58,7 @@ define('BFF_ADMIN_MENU', 'BFF Settings');
// other useful parameters
define('BFF_MAX_FILE_READ_CHAR', 1000000); // limit max size of the file to read to 1mb
// turn on debugging with true, off with false
define('BFF_DEBUG', true);
define('BFF_DEBUG', false);
define('LOG_STREAM', getenv('LOG_STREAM'));
// include the dependencies
......
......@@ -24,7 +24,7 @@ class BFFForm extends BFFCourse {
$this->create_post(BFF_SLUG);
$this->log('setting up scripts');
// add the ajax handlers
wp_enqueue_script('bff-script', BFF_URL.'js/script.js', array(
wp_enqueue_script('bff-script', BFF_URL.'js/bff_script.js', array(
'jquery', 'jquery-form'));
wp_localize_script('bff-script', 'bff_data', array(
'ajaxurl' => admin_url('admin-ajax.php'),
......@@ -32,7 +32,7 @@ class BFFForm extends BFFCourse {
'nonce_set' => wp_create_nonce('bff-set-nonce'),
));
// our css
wp_register_style('bff-style', BFF_URL.'css/style.css');
wp_register_style('bff-style', BFF_URL.'css/bff_style.css');
wp_enqueue_style('bff-style');
// this enables the feedfinder service for authenticated users...
add_action('wp_ajax_bff_submit', array($this, 'ajax_submit'));
......
/* created by Dave Lane, dave@oerfoundation.org, https://oeru.org */
var DEBUG = true; // set to false to disable debugging
var DEBUG = false; // set to false to disable debugging
var LOG = DEBUG ? console.log.bind(console) : function () {};
LOG('BFF DEBUG = true'); // only prints if DEBUG = true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment