Created
September 9, 2010 20:21
-
-
Save mjangda/572482 to your computer and use it in GitHub Desktop.
Hook into the WordPress widget save javascript callback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ajaxSuccess(function(e, xhr, settings) { | |
var widget_id_base = 'mywidget'; | |
if(settings.data.search('action=save-widget') != -1 && settings.data.search('id_base=' + widget_id_base) != -1) { | |
alert('yay!'); | |
// do other stuff | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment