Changeset 98
- Timestamp:
- 04/19/07 06:55:14 (2 years ago)
- Files:
-
- contenttoolbar/js/edit.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contenttoolbar/js/edit.js
r96 r98 173 173 case 'mediapopup': 174 174 eval("btn.onclick = function(){window.open('"+ 175 jsEscape(tb[i]['url'])+ "?input_field="+jsEscape(edid)+"','"+175 jsEscape(tb[i]['url'])+((tb[i]['url'].indexOf('?')>0)?"&":"?")+"input_field="+jsEscape(edid)+"','"+ 176 176 jsEscape(tb[i]['name'])+"','"+ 177 177 jsEscape(tb[i]['options'])+ … … 338 338 339 339 /** 340 * Called by picker buttons to insert Text and close the picker again340 * Called by to insert a new video string 341 341 * @param string edid input_field id 342 342 * @param string err_msg error message … … 363 363 text = '{{video:'+value+size+'}}'; 364 364 // insert 365 opener.add Video(edid,text,opener);365 opener.addResource(edid,text,opener); 366 366 // close picker 367 367 window.close(); 368 368 } 369 370 369 /** 371 370 * Append te provided value in the specified field … … 375 374 * @author Diego Andrés Ramírez Aragón <diego@somosmas.org> 376 375 */ 377 function add Video(id,value){376 function addResource(id,value){ 378 377 var field = $(id); 379 378 field.value+=" "+value;
