summaryrefslogtreecommitdiffstats
path: root/wp-admin/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/js/common.js')
-rw-r--r--wp-admin/js/common.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js
new file mode 100644
index 0000000..9f05e55
--- /dev/null
+++ b/wp-admin/js/common.js
@@ -0,0 +1,12 @@
+addLoadEvent( function() {
+ // pulse
+ jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
+
+ // Reveal
+ jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
+
+ // Basic form validation
+ if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) {
+ jQuery('form').submit( function() { return wpAjax.validateForm( jQuery(this) ); } );
+ }
+});