Changeset 914770
- Timestamp:
- 05/15/2014 05:03:41 PM (12 years ago)
- Location:
- smartpost-templates
- Files:
-
- 14 edited
-
tags/2.3.2/components/attachments/js/sp_postAttachments.js (modified) (4 diffs)
-
tags/2.3.2/components/gallery/js/sp_postGallery.js (modified) (2 diffs)
-
tags/2.3.2/components/photo/ajax/sp_postPhotoAJAX.php (modified) (1 diff)
-
tags/2.3.2/components/photo/js/sp_postPhoto.js (modified) (2 diffs)
-
tags/2.3.2/components/video/ajax/sp_postVideoAJAX.php (modified) (1 diff)
-
tags/2.3.2/components/video/js/sp_postVideo.js (modified) (3 diffs)
-
tags/2.3.2/widgets/js/sp_quickPostWidget.js (modified) (1 diff)
-
trunk/components/attachments/js/sp_postAttachments.js (modified) (4 diffs)
-
trunk/components/gallery/js/sp_postGallery.js (modified) (2 diffs)
-
trunk/components/photo/ajax/sp_postPhotoAJAX.php (modified) (1 diff)
-
trunk/components/photo/js/sp_postPhoto.js (modified) (2 diffs)
-
trunk/components/video/ajax/sp_postVideoAJAX.php (modified) (1 diff)
-
trunk/components/video/js/sp_postVideo.js (modified) (3 diffs)
-
trunk/widgets/js/sp_quickPostWidget.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smartpost-templates/tags/2.3.2/components/attachments/js/sp_postAttachments.js
r914739 r914770 46 46 * @param postID 47 47 */ 48 initFileDrop: function( component, postID){48 initFileDrop: function( component ){ 49 49 var self = this; 50 50 var compID = component.data('compid'); … … 55 55 // Get a handle onto the previous unload event as our message will change throughout upload 56 56 var prev_onbeforeunload = window.onbeforeunload; 57 58 if(postID == undefined){59 postID = jQuery('#postID').val(); // Single post60 if(postID == undefined){61 postID = jQuery('#sp_qpPostID').val(); // Using the quickpost widget62 }63 }64 57 65 58 var uploader = new plupload.Uploader({ … … 78 71 action : 'attachmentsUploadAJAX', 79 72 nonce : SP_NONCE, 80 compID : compID, 81 postID : postID 73 compID : compID 82 74 }, 83 75 max_file_size : '1gb', … … 196 188 // Init plupload file drop for the drop zones 197 189 $( '.sp-attachments-uploads-row' ).each(function(){ 198 self.initFileDrop( $(this) , null);190 self.initFileDrop( $(this) ); 199 191 }); 200 192 -
smartpost-templates/tags/2.3.2/components/gallery/js/sp_postGallery.js
r914739 r914770 44 44 * @param object component The gallery component 45 45 */ 46 initFileDrop: function( component, postID){46 initFileDrop: function( component ){ 47 47 var self = this; 48 48 var compID = component.data('compid'); 49 49 var browse_id = 'sp-gallery-upload-' + compID; 50 50 var prev_onbeforeunload = window.onbeforeunload; 51 52 if(postID == undefined){53 postID = jQuery('#postID').val();54 if(postID == undefined){55 postID = jQuery('#sp_qpPostID').val();56 }57 }58 51 59 52 var uploader = new plupload.Uploader({ … … 72 65 action : 'galleryUploadAJAX', 73 66 nonce : SP_NONCE, 74 compID : compID, 75 postID : postID 67 compID : compID 76 68 }, 77 69 max_file_size : '1gb', -
smartpost-templates/tags/2.3.2/components/photo/ajax/sp_postPhotoAJAX.php
r914739 r914770 136 136 } 137 137 138 139 140 138 $name = ''; 141 139 if ( isset( $_REQUEST["name"] ) ) { -
smartpost-templates/tags/2.3.2/components/photo/js/sp_postPhoto.js
r914739 r914770 43 43 * @param object component The photo component 44 44 */ 45 initFileDrop: function( component, postID){45 initFileDrop: function( component ){ 46 46 var self = this; 47 47 var compID = component.data('compid'); 48 48 var browse_id = 'sp-photo-upload-' + compID; 49 49 var prev_onbeforeunload = window.onbeforeunload; 50 51 if(postID == undefined){52 postID = jQuery('#postID').val();53 if(postID == undefined){54 postID = jQuery('#sp_qpPostID').val();55 }56 }57 50 58 51 var uploader = new plupload.Uploader({ … … 71 64 action : 'photoUploadAJAX', 72 65 nonce : SP_NONCE, 73 compID : compID, 74 postID : postID 66 compID : compID 75 67 }, 76 68 max_file_size : '1gb', -
smartpost-templates/tags/2.3.2/components/video/ajax/sp_postVideoAJAX.php
r914739 r914770 102 102 } 103 103 104 if( empty($_POST['postID']) ){105 header("HTTP/1.0 409 Could find post ID.");106 exit;107 }108 109 104 if(empty($_FILES)){ 110 105 header("HTTP/1.0 409 Files uploaded are empty!"); -
smartpost-templates/tags/2.3.2/components/video/js/sp_postVideo.js
r914739 r914770 32 32 /** 33 33 * Initializes HTML5 filedrop for the media component 34 * @param object component The video compoennt 35 * @param int postID The PostID 34 * @param component - The video compoennt 36 35 * @see $plupload_init array in /wp-admin/includes/media.php 37 36 */ 38 initFileDrop: function( component, postID){37 initFileDrop: function( component ){ 39 38 var self = this; 40 39 var compID = component.attr('data-compid'); 41 40 var browse_id = 'sp_videoBrowse-' + compID; 42 41 var prev_onbeforeunload = window.onbeforeunload; 43 44 if(postID == undefined){45 postID = jQuery('#postID').val();46 if(postID == undefined){47 postID = jQuery('#sp_qpPostID').val();48 }49 }50 42 51 43 var videoFilters; … … 78 70 action : 'videoUploadAJAX', 79 71 nonce : SP_NONCE, 80 compID : compID, 81 postID : postID 72 compID : compID 82 73 }, 83 74 max_file_size : '1gb', … … 223 214 224 215 $('.sp_video').each(function(){ 225 self.initFileDrop( $(this));216 self.initFileDrop( $(this) ); 226 217 }); 227 218 } -
smartpost-templates/tags/2.3.2/widgets/js/sp_quickPostWidget.js
r914739 r914770 84 84 post_title: title 85 85 }, 86 dataType: 'json', 86 87 success: function(response, statusText, jqXHR){ 87 //Refresh the page88 88 if( response.permalink ){ 89 89 window.location.replace( response.permalink ); -
smartpost-templates/trunk/components/attachments/js/sp_postAttachments.js
r914746 r914770 46 46 * @param postID 47 47 */ 48 initFileDrop: function( component, postID){48 initFileDrop: function( component ){ 49 49 var self = this; 50 50 var compID = component.data('compid'); … … 55 55 // Get a handle onto the previous unload event as our message will change throughout upload 56 56 var prev_onbeforeunload = window.onbeforeunload; 57 58 if(postID == undefined){59 postID = jQuery('#postID').val(); // Single post60 if(postID == undefined){61 postID = jQuery('#sp_qpPostID').val(); // Using the quickpost widget62 }63 }64 57 65 58 var uploader = new plupload.Uploader({ … … 78 71 action : 'attachmentsUploadAJAX', 79 72 nonce : SP_NONCE, 80 compID : compID, 81 postID : postID 73 compID : compID 82 74 }, 83 75 max_file_size : '1gb', … … 196 188 // Init plupload file drop for the drop zones 197 189 $( '.sp-attachments-uploads-row' ).each(function(){ 198 self.initFileDrop( $(this) , null);190 self.initFileDrop( $(this) ); 199 191 }); 200 192 -
smartpost-templates/trunk/components/gallery/js/sp_postGallery.js
r914746 r914770 44 44 * @param object component The gallery component 45 45 */ 46 initFileDrop: function( component, postID){46 initFileDrop: function( component ){ 47 47 var self = this; 48 48 var compID = component.data('compid'); 49 49 var browse_id = 'sp-gallery-upload-' + compID; 50 50 var prev_onbeforeunload = window.onbeforeunload; 51 52 if(postID == undefined){53 postID = jQuery('#postID').val();54 if(postID == undefined){55 postID = jQuery('#sp_qpPostID').val();56 }57 }58 51 59 52 var uploader = new plupload.Uploader({ … … 72 65 action : 'galleryUploadAJAX', 73 66 nonce : SP_NONCE, 74 compID : compID, 75 postID : postID 67 compID : compID 76 68 }, 77 69 max_file_size : '1gb', -
smartpost-templates/trunk/components/photo/ajax/sp_postPhotoAJAX.php
r914746 r914770 136 136 } 137 137 138 139 140 138 $name = ''; 141 139 if ( isset( $_REQUEST["name"] ) ) { -
smartpost-templates/trunk/components/photo/js/sp_postPhoto.js
r914746 r914770 43 43 * @param object component The photo component 44 44 */ 45 initFileDrop: function( component, postID){45 initFileDrop: function( component ){ 46 46 var self = this; 47 47 var compID = component.data('compid'); 48 48 var browse_id = 'sp-photo-upload-' + compID; 49 49 var prev_onbeforeunload = window.onbeforeunload; 50 51 if(postID == undefined){52 postID = jQuery('#postID').val();53 if(postID == undefined){54 postID = jQuery('#sp_qpPostID').val();55 }56 }57 50 58 51 var uploader = new plupload.Uploader({ … … 71 64 action : 'photoUploadAJAX', 72 65 nonce : SP_NONCE, 73 compID : compID, 74 postID : postID 66 compID : compID 75 67 }, 76 68 max_file_size : '1gb', -
smartpost-templates/trunk/components/video/ajax/sp_postVideoAJAX.php
r914746 r914770 102 102 } 103 103 104 if( empty($_POST['postID']) ){105 header("HTTP/1.0 409 Could find post ID.");106 exit;107 }108 109 104 if(empty($_FILES)){ 110 105 header("HTTP/1.0 409 Files uploaded are empty!"); -
smartpost-templates/trunk/components/video/js/sp_postVideo.js
r914746 r914770 32 32 /** 33 33 * Initializes HTML5 filedrop for the media component 34 * @param object component The video compoennt 35 * @param int postID The PostID 34 * @param component - The video compoennt 36 35 * @see $plupload_init array in /wp-admin/includes/media.php 37 36 */ 38 initFileDrop: function( component, postID){37 initFileDrop: function( component ){ 39 38 var self = this; 40 39 var compID = component.attr('data-compid'); 41 40 var browse_id = 'sp_videoBrowse-' + compID; 42 41 var prev_onbeforeunload = window.onbeforeunload; 43 44 if(postID == undefined){45 postID = jQuery('#postID').val();46 if(postID == undefined){47 postID = jQuery('#sp_qpPostID').val();48 }49 }50 42 51 43 var videoFilters; … … 78 70 action : 'videoUploadAJAX', 79 71 nonce : SP_NONCE, 80 compID : compID, 81 postID : postID 72 compID : compID 82 73 }, 83 74 max_file_size : '1gb', … … 223 214 224 215 $('.sp_video').each(function(){ 225 self.initFileDrop( $(this));216 self.initFileDrop( $(this) ); 226 217 }); 227 218 } -
smartpost-templates/trunk/widgets/js/sp_quickPostWidget.js
r914746 r914770 84 84 post_title: title 85 85 }, 86 dataType: 'json', 86 87 success: function(response, statusText, jqXHR){ 87 //Refresh the page88 88 if( response.permalink ){ 89 89 window.location.replace( response.permalink );
Note: See TracChangeset
for help on using the changeset viewer.