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:
parent
3c05580077
commit
b4fd79f281
|
@ -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'); };
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.mananger );} );
|
||||
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.manager );} );
|
||||
|
||||
addLoadEvent( function()
|
||||
{
|
||||
|
|
|
@ -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.')
|
||||
|
|
Loading…
Reference in New Issue