fix FF bug in write screen: post status change on reload. Props mdawaffe. fixes #4664
git-svn-id: https://develop.svn.wordpress.org/trunk@5816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9919fa4f39
commit
3982fc6ae8
@ -4,7 +4,8 @@ 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 + '"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span>');
|
||||
// These multiple blank hidden inputs are needed: https://bugzilla.mozilla.org/show_bug.cgi?id=377815 , #3895 , #4664
|
||||
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"/><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'); };
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ class WP_Scripts {
|
||||
'toggleKey' => __(', or press the enter key to %toggle% it'),
|
||||
) );
|
||||
}
|
||||
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array('listman'), '20070417' );
|
||||
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array('listman'), '20070724' );
|
||||
$this->localize( 'ajaxcat', 'catL10n', array(
|
||||
'add' => attribute_escape(__('Add')),
|
||||
'how' => __('Separate multiple categories with commas.')
|
||||
|
Loading…
Reference in New Issue
Block a user