includes/clientside/tinymce/plugins/advimage/js/image.js
changeset 1193 e3b94bd055dc
parent 778 57ce13805b6f
equal deleted inserted replaced
1192:5882f0eebb34 1193:e3b94bd055dc
   270 			});
   270 			});
   271 		} else
   271 		} else
   272 			cl = tinyMCEPopup.editor.dom.getClasses();
   272 			cl = tinyMCEPopup.editor.dom.getClasses();
   273 
   273 
   274 		if (cl.length > 0) {
   274 		if (cl.length > 0) {
       
   275 			lst.options.length = 0;
   275 			lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
   276 			lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
   276 
   277 
   277 			tinymce.each(cl, function(o) {
   278 			tinymce.each(cl, function(o) {
   278 				lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
   279 				lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
   279 			});
   280 			});
   283 
   284 
   284 	fillFileList : function(id, l) {
   285 	fillFileList : function(id, l) {
   285 		var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
   286 		var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
   286 
   287 
   287 		l = window[l];
   288 		l = window[l];
       
   289 		lst.options.length = 0;
   288 
   290 
   289 		if (l && l.length > 0) {
   291 		if (l && l.length > 0) {
   290 			lst.options[lst.options.length] = new Option('', '');
   292 			lst.options[lst.options.length] = new Option('', '');
   291 
   293 
   292 			tinymce.each(l, function(o) {
   294 			tinymce.each(l, function(o) {