mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Use new jQuery methods when adding, editing and deleting tags with AJAX, fix warning when deleting tags, see #10239
git-svn-id: https://develop.svn.wordpress.org/trunk@11676 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var showNotice, adminMenu, columns;
|
||||
var showNotice, adminMenu, columns, validateForm;
|
||||
(function($){
|
||||
// sidebar admin menu
|
||||
adminMenu = {
|
||||
@@ -122,6 +122,10 @@ columns = {
|
||||
|
||||
$(document).ready(function(){columns.init();});
|
||||
|
||||
validateForm = function( form ) {
|
||||
return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() == ''; } ).addClass( 'form-invalid' ).change( function() { $(this).removeClass( 'form-invalid' ); } ).size();
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
|
||||
// stub for doing better warnings
|
||||
|
||||
Reference in New Issue
Block a user