| 1 |
// $Id: imce_set_app.js,v 1.3.2.7 2009/07/09 19:49:46 ufku Exp $ |
// $Id$ |
| 2 |
//When imce url contains &app=appName|fileProperty1@correspondingFieldId1|fileProperty2@correspondingFieldId2|... |
//When imce url contains &app=appName|fileProperty1@correspondingFieldId1|fileProperty2@correspondingFieldId2|... |
| 3 |
//the specified fields are filled with the specified properties of the selected file. |
//the specified fields are filled with the specified properties of the selected file. |
| 4 |
|
|
| 18 |
appWindow[appFields['onload']](win); |
appWindow[appFields['onload']](win); |
| 19 |
delete appFields['onload']; |
delete appFields['onload']; |
| 20 |
} |
} |
| 21 |
|
//alternative sytax for some servers that ban URLs containing onload keyword. |
| 22 |
|
else if (appFields['imceload'] && $.isFunction(appWindow[appFields['imceload']])) { |
| 23 |
|
appWindow[appFields['imceload']](win); |
| 24 |
|
delete appFields['imceload']; |
| 25 |
|
} |
| 26 |
//set custom sendto function. appFinish is the default. |
//set custom sendto function. appFinish is the default. |
| 27 |
var sendtoFunc = appFields['url'] ? appFinish : false; |
var sendtoFunc = appFields['url'] ? appFinish : false; |
| 28 |
//check sendto@funcName syntax in URL |
//check sendto@funcName syntax in URL |