1 // http://civicrm.org/licensing
3 function openKCFinder(field
) {
5 callBack: function(url
) {
7 window
.KCFinder
= null;
11 window
.open(CRM
.kcfinderPath
+ 'kcfinder/browse.php?cms=civicrm&type=images', 'kcfinder_textbox',
12 'status=0, toolbar=0, location=0, menubar=0, directories=0, ' +
13 'resizable=1, scrollbars=0, width=800, height=600'
17 $('input[id^="image_"]').click(function(){
18 openKCFinder($(this));
21 $('.clear-image').click(function(){
22 $('#' + $(this).attr('imgname')).val('');