Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wp_enqueue_script( array("jquery", "jquery-ui-core", "interface", "jquery-ui-sortable", "wp-lists", "jquery-ui-sortable") );
- // Drag and drop attachments
- add_action('admin_head', 'dragndrop');
- function dragndrop() { ?>
- <script type="text/javascript">
- //<![CDATA[
- jQuery(document).ready(function() {
- jQuery('#attachmentcontainer').sortable();
- });
- //]]>
- </script>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement