]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/tags.dev.js
WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / js / tags.dev.js
index 045f2b260a200222721d5bb85cbbbf30c3623976..e8ac151a207cf25671dd1bd9e2c9f8d3dbf89eaa 100644 (file)
@@ -33,9 +33,9 @@ jQuery(document).ready(function($) {
                        return false;
 
                $.post(ajaxurl, $('#addtag').serialize(), function(r){
-                  $('#ajax-response').empty();
+                       $('#ajax-response').empty();
                        var res = wpAjax.parseAjaxResponse(r, 'ajax-response');
-                       if ( ! res )
+                       if ( ! res || res.errors )
                                return;
 
                        var parent = form.find('select#parent').val();