WordPress.org

Make WordPress Core

Changeset 12037


Ignore:
Timestamp:
10/15/09 13:58:10 (5 years ago)
Author:
markjaquith
Message:

Remove close TB call that was removed earlier. see #10928

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/set-post-thumbnail.dev.js

    r12031 r12037  
    77        if ( str == '0' ) { 
    88            alert( setPostThumbnailL10n.error ); 
    9             win.cwsCloseTB(); 
    109        } else { 
    1110            jQuery('a.wp-post-thumbnail').text( setPostThumbnailL10n.setThumbnail ); 
  • trunk/wp-admin/js/set-post-thumbnail.js

    r12031 r12037  
    1 function WPSetAsThumbnail(id){jQuery("#media-item-"+id+" > a.wp-post-thumbnail").text(setPostThumbnailL10n.saving).attr("href","#");jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:id,cookie:encodeURIComponent(document.cookie)},function(str){var win=window.dialogArguments||opener||parent||top;if(str=="0"){alert(setPostThumbnailL10n.error);win.cwsCloseTB()}else{jQuery("a.wp-post-thumbnail").text(setPostThumbnailL10n.setThumbnail);jQuery("#media-item-"+id+" > a.wp-post-thumbnail").hide();win.WPSetThumbnailID(id);win.WPSetThumbnailHTML(str)}})}; 
     1function WPSetAsThumbnail(id){jQuery("#media-item-"+id+" > a.wp-post-thumbnail").text(setPostThumbnailL10n.saving).attr("href","#");jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:id,cookie:encodeURIComponent(document.cookie)},function(str){var win=window.dialogArguments||opener||parent||top;if(str=="0"){alert(setPostThumbnailL10n.error)}else{jQuery("a.wp-post-thumbnail").text(setPostThumbnailL10n.setThumbnail);jQuery("#media-item-"+id+" > a.wp-post-thumbnail").hide();win.WPSetThumbnailID(id);win.WPSetThumbnailHTML(str)}})}; 
  • trunk/wp-includes/script-loader.php

    r12036 r12037  
    376376        $scripts->add_data( 'image-edit', 'group', 1 ); 
    377377 
    378         $scripts->add( 'set-post-thumbnail', "/wp-admin/js/set-post-thumbnail$suffix.js", array( 'jquery' ), '20091014' ); 
     378        $scripts->add( 'set-post-thumbnail', "/wp-admin/js/set-post-thumbnail$suffix.js", array( 'jquery' ), '20091015' ); 
    379379        $scripts->add_data( 'set-post-thumbnail', 'group', 1 ); 
    380380        $scripts->localize( 'set-post-thumbnail', 'setPostThumbnailL10n', array( 
Note: See TracChangeset for help on using the changeset viewer.