IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 728 | 728 | * and a view for embeddable URLs. |
| 729 | 729 | */ |
| 730 | 730 | ( function( window, views, $ ) { |
| 731 | | var media, gallery, av, embed; |
| | 731 | var postID = $( '#post_ID' ).val() || 0, |
| | 732 | media, gallery, av, embed; |
| 732 | 733 | |
| 733 | 734 | media = { |
| 734 | 735 | state: [], |
| … |
… |
|
| 759 | 760 | template: wp.media.template( 'editor-gallery' ), |
| 760 | 761 | |
| 761 | 762 | initialize: function() { |
| 762 | | var attachments = wp.media.gallery.attachments( this.shortcode, wp.media.view.settings.post.id ), |
| | 763 | var attachments = wp.media.gallery.attachments( this.shortcode, postID ), |
| 763 | 764 | attrs = this.shortcode.attrs.named, |
| 764 | 765 | self = this; |
| 765 | 766 | |
| … |
… |
|
| 804 | 805 | } |
| 805 | 806 | |
| 806 | 807 | wp.ajax.post( this.action, { |
| 807 | | post_ID: wp.media.view.settings.post.id, |
| | 808 | post_ID: postID, |
| 808 | 809 | type: this.shortcode.tag, |
| 809 | 810 | shortcode: this.shortcode.string() |
| 810 | 811 | } ) |