diff --git a/inlineEdit.v1.2.js b/inline-edit.v1.2.js similarity index 100% rename from inlineEdit.v1.2.js rename to inline-edit.v1.2.js diff --git a/pagemash.js b/pagemash.js index cd73478..52f6e47 100644 --- a/pagemash.js +++ b/pagemash.js @@ -45,11 +45,11 @@ Ajax = Ajax.extend({ } }); /* function to retrieve list data and send to server in JSON format */ -var SaveList = function() { +var saveList = function() { var theDump = sortIt.serialize(); console.group('Database Update'); console.time('Update Chronometer'); - new Ajax('../wp-content/plugins/pagemash/saveList.php', { + new Ajax('../wp-content/plugins/pagemash/savelist.php', { method: 'post', postBody: 'm='+Json.toString(theDump), update: "debug_list", @@ -116,7 +116,7 @@ window.addEvent('domready', function(){ $('pageMash_submit').addEvent('click', function(e){ e = new Event(e); - SaveList(); + saveList(); e.stop(); }); diff --git a/pagemash.php b/pagemash.php index 13a6474..d73e252 100644 --- a/pagemash.php +++ b/pagemash.php @@ -146,7 +146,7 @@ function pageMash_head(){ wp_deregister_script('prototype');//remove prototype since it is incompatible with mootools wp_enqueue_script('pagemash_mootools', $pageMash_url.'/nest-mootools.v1.11.js', false, false); //code is not compatible with other releases of moo wp_enqueue_script('pagemash_nested', $pageMash_url.'/nested.js', array('pagemash_mootools'), false); - wp_enqueue_script('pagemash_inlineEdit', $pageMash_url.'/inlineEdit.v1.2.js', array('pagemash_mootools'), false); + wp_enqueue_script('pagemash_inline_edit', $pageMash_url.'/inline-edit.v1.2.js', array('pagemash_mootools'), false); wp_enqueue_script('pagemash', $pageMash_url.'/pagemash.js', array('pagemash_mootools'), false); add_action('admin_head', 'pageMash_add_css', 1); if(function_exists('wp_enqueue_style')){ diff --git a/saveList.php b/savelist.php similarity index 100% rename from saveList.php rename to savelist.php