Category AJAX fixes from mdawaffe. fixes #3343
git-svn-id: http://svn.automattic.com/wordpress/trunk@4768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -8,7 +8,7 @@ function newCatAddIn() {
|
||||
var jaxcat = $('jaxcat');
|
||||
if ( !jaxcat )
|
||||
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 echo js_escape(__('Separate multiple categories with commas.')); ?></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="<?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); };
|
||||
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
|
||||
}
|
||||
|
||||
@@ -207,16 +207,16 @@ addLoadEvent( function() {
|
||||
if ( !prep ) {
|
||||
var filesEl = $('upload-files');
|
||||
if ( filesEl )
|
||||
filesEl.show();
|
||||
Element.show(filesEl);
|
||||
var navEl = $('current-tab-nav');
|
||||
if ( navEl )
|
||||
navEl.show();
|
||||
Element.show(navEl);
|
||||
}
|
||||
if ( !this.ID )
|
||||
this.grabImageData(0);
|
||||
var div = $('upload-file');
|
||||
if ( div )
|
||||
div.remove();
|
||||
Element.remove(div);
|
||||
return false;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user