Changeset 5391 in subversion


Ignore:
Timestamp:
Nov 4, 2011 11:12:31 AM (19 months ago)
Author:
alec
Message:
  • Don't use external js file for images listing in HTML editor
Location:
trunk/roundcubemail/program/js
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/editor.js

    r5283 r5391  
    3232      gecko_spellcheck: true, 
    3333      convert_urls: false, // #1486944 
    34       external_image_list_url: 'program/js/editor_images.js', 
     34      external_image_list: window.rcmail_editor_images, 
    3535      rc_client: rcmail 
    3636    }; 
     
    130130  } 
    131131} 
     132 
     133// editor callbeck for images listing 
     134function rcmail_editor_images() 
     135{ 
     136  var i, files = rcmail.env.attachments, list = []; 
     137 
     138  for (i in files) { 
     139    att = files[i]; 
     140    if (att.complete && att.mimetype.indexOf('image/') == 0) { 
     141      list.push([att.name, rcmail.env.comm_path+'&_action=display-attachment&_file='+i+'&_id='+rcmail.env.compose_id]); 
     142    } 
     143  } 
     144 
     145  return list; 
     146}; 
Note: See TracChangeset for help on using the changeset viewer.