PluginProbe
Catch Web Tools / 0.1
Catch Web Tools v0.1
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / admin / js / add_image_scripts.js

add_image_scripts.js in Catch Web Tools 0.1, at admin/js/add_image_scripts.js

16 lines 468 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * jQuery function to popup upload image box on clicking button with class st_upload_button
3 */
4 jQuery(document).ready(function() {
5 jQuery('.st_upload_button').click(function() {
6 targetfield = jQuery(this).prev('.upload-url');
7 tb_show('', 'media-upload.php?type=image&TB_iframe=true');
8 return false;
9 });
10 window.send_to_editor = function(html) {
11 imgurl = jQuery('img',html).attr('src');
12 jQuery(targetfield).val(imgurl);
13 tb_remove();
14 }
15 });
16