AJAXcat fixes and FF workaround from mdawaffe. fixes #3895

git-svn-id: http://svn.automattic.com/wordpress/trunk@5280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-04-17 20:56:41 +00:00
parent 3c05580077
commit b4fd79f281
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ function newCatAddIn() {
var jaxcat = $('jaxcat');
if ( !jaxcat )
return false;
Element.update(jaxcat,'<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="' + catL10n.add + '"/><span id="howto">' + catL10n.how + '</span></span>');
Element.update(jaxcat,'<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span>');
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
}

View File

@ -1,4 +1,4 @@
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.mananger );} );
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.manager );} );
addLoadEvent( function()
{

View File

@ -78,7 +78,7 @@ class WP_Scripts {
break;
endswitch;
if ( $man ) {
$this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key.js', array('dbx'), '20070306' );
$this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key.js', array('dbx'), '20070417' );
$this->localize( 'dbx-admin-key', 'dbxL10n', array(
'manager' => $man,
'open' => __('open'),
@ -89,7 +89,7 @@ class WP_Scripts {
'toggleKey' => __(', or press the enter key to %toggle% it'),
) );
}
$this->add( 'ajaxcat', '/wp-admin/cat.js', array('listman'), '20070306' );
$this->add( 'ajaxcat', '/wp-admin/cat.js', array('listman'), '20070417' );
$this->localize( 'ajaxcat', 'catL10n', array(
'add' => attribute_escape(__('Add')),
'how' => __('Separate multiple categories with commas.')