| 209 | | window.parent.frames[\'frmUpload\'].OnUploadCompleted(' + $uploadResult + ',\'' + $NewFilePath + '\',\'' + $NewFilePath->split('/')->last + '\'); |
| | 208 | (function() |
| | 209 | { |
| | 210 | var d = document.domain ; |
| | 211 | |
| | 212 | while ( true ) |
| | 213 | { |
| | 214 | // Test if we can access a parent property. |
| | 215 | try |
| | 216 | { |
| | 217 | var test = window.top.opener.document.domain ; |
| | 218 | break ; |
| | 219 | } |
| | 220 | catch( e ) {} |
| | 221 | |
| | 222 | // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... |
| | 223 | d = d.replace( /.*?(?:\\.|$)/, "" ) ; |
| | 224 | |
| | 225 | if ( d.length == 0 ) |
| | 226 | break ; // It was not able to detect the domain. |
| | 227 | |
| | 228 | try |
| | 229 | { |
| | 230 | document.domain = d ; |
| | 231 | } |
| | 232 | catch (e) |
| | 233 | { |
| | 234 | break ; |
| | 235 | } |
| | 236 | } |
| | 237 | })() ; |
| | 238 | '; |
| | 239 | if($uploadResult == '0' || $uploadResult == '201'); |
| | 240 | $__html_reply__ = $__html_reply__ + '\ |
| | 241 | window.parent.OnUploadCompleted(' + $uploadResult + ',\'' + $NewFilePath + '\',\'' + $NewFilePath->split('/')->last + '\'); |