2014-04-09 23:10:27 +03:00
|
|
|
(function( $ ) {
|
|
|
|
'use strict';
|
|
|
|
|
2014-05-01 05:33:06 +03:00
|
|
|
/**
|
2015-02-13 20:31:40 +02:00
|
|
|
* All of the code for your admin-specific JavaScript source
|
2014-05-01 05:33:06 +03:00
|
|
|
* should reside in this file.
|
|
|
|
*
|
2014-08-19 00:00:09 +03:00
|
|
|
* Note that this assume you're going to use jQuery, so it prepares
|
2014-05-01 05:33:06 +03:00
|
|
|
* the $ function reference to be used within the scope of this
|
|
|
|
* function.
|
|
|
|
*
|
|
|
|
* From here, you're able to define handlers for when the DOM is
|
|
|
|
* ready:
|
|
|
|
*
|
|
|
|
* $(function() {
|
2014-05-03 22:06:50 +03:00
|
|
|
*
|
2014-05-01 05:33:06 +03:00
|
|
|
* });
|
|
|
|
*
|
2014-08-19 00:00:09 +03:00
|
|
|
* Or when the window is loaded:
|
2014-05-01 05:33:06 +03:00
|
|
|
*
|
|
|
|
* $( window ).load(function() {
|
2014-05-03 22:06:50 +03:00
|
|
|
*
|
2014-05-01 05:33:06 +03:00
|
|
|
* });
|
|
|
|
*
|
|
|
|
* ...and so on.
|
2014-05-03 22:06:50 +03:00
|
|
|
*
|
2014-08-19 00:00:09 +03:00
|
|
|
* Remember that ideally, we should not attach any more than a single DOM-ready or window-load handler
|
2014-05-03 22:06:50 +03:00
|
|
|
* for any particular page. Though other scripts in WordPress core, other plugins, and other themes may
|
|
|
|
* be doing this, we should try to minimize doing that in our own work.
|
2014-05-01 05:33:06 +03:00
|
|
|
*/
|
|
|
|
|
2014-05-03 22:27:15 +03:00
|
|
|
})( jQuery );
|