Sha256: f185a28c7701297c795911be9612c64734c7bdcd99bb85808b527a38e72b8966

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

var wpActiveEditor,send_to_editor;send_to_editor=function(a){var b,c="undefined"!=typeof tinymce,d="undefined"!=typeof QTags;if(wpActiveEditor)c&&(b=tinymce.get(wpActiveEditor));else if(c&&tinymce.activeEditor)b=tinymce.activeEditor,wpActiveEditor=b.id;else if(!d)return!1;if(b&&!b.isHidden()?b.execCommand("mceInsertContent",!1,a):d?QTags.insertContent(a):document.getElementById(wpActiveEditor).value+=a,window.tb_remove)try{window.tb_remove()}catch(e){}};var tb_position;!function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>833?833:c,f=0;return a("#wpadminbar").length&&(f=parseInt(a("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85-f)))})},a(window).resize(function(){tb_position()})}(jQuery);

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
boot-cli-1.0.0 lib/templates/wordpress/wp-admin/js/media-upload.min.js
boot-cli-0.3.1 lib/templates/wordpress/wp-admin/js/media-upload.min.js
boot-cli-0.3.0 lib/templates/wordpress/wp-admin/js/media-upload.min.js
stump-cli-0.1.3 lib/wp/wp-admin/js/media-upload.min.js
stump-cli-0.1.2 lib/wp/wp-admin/js/media-upload.min.js
stump-cli-0.1.1 lib/wp/wp-admin/js/media-upload.min.js