Don't forge to echo. Props mypatricks. fixes #3423

git-svn-id: https://develop.svn.wordpress.org/trunk@4587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-12-03 19:40:07 +00:00
parent 5a35e93a0a
commit d916e255f4

View File

@ -8,7 +8,7 @@ function newCatAddIn() {
var jaxcat = $('jaxcat'); var jaxcat = $('jaxcat');
if ( !jaxcat ) if ( !jaxcat )
return false; return false;
jaxcat.update('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="<?php echo js_escape(__('Add')); ?>"/><span id="howto"><?php js_escape(__('Separate multiple categories with commas.')); ?></span></span>'); jaxcat.update('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="<?php echo js_escape(__('Add')); ?>"/><span id="howto"><?php echo js_escape(__('Separate multiple categories with commas.')); ?></span></span>');
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); }; $('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); }; $('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
} }