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:
ryan
2007-01-19 00:49:01 +00:00
parent 76f70dc31d
commit 52f1841134
6 changed files with 45 additions and 45 deletions

View File

@@ -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'); };
}

View File

@@ -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;
},