{{vtIdiom: vt_str_createPage}} ({{vtGetValue: -template}}) {{vtIdiom: vt_str_change}}
{{vtIdiom: vt_msg0068}}
") != -1) { helper = response.split("\"); result = helper[1]; } else { result = response; } if(result) { daten = JSON.parse(result); document.formular.action = document.formular.action.replace(/-pg=\d+/, '-pg=' + daten.id); document.formular.action = document.formular.action.replace(/-ck=\d+/, '-ck=' + new Date().getTime()); document.formular.action = document.formular.action.replace(/-act=create/, '-act=finish&-obj=' + daten.id + '&-target={{vtID}}'); } fileURL = fileURL.replace(/-pg=\d+/, '-pg=' + document.formular.action.match(/-pg=(\d+)/)[1]); wait_on_creation = false; } }; req.send(null); } function myFileBrowser (field_name, url, type, win) { var fb_title = ''; if(type == 'image') { fb_title = 'Bildauswahl'; } else { fb_title = 'Dateiauswahl'; } fileURL = '{{vtLink:-met="vtfilebrowser"}}&-type=' + type; wait_on_creation = false; if(document.formular.action.match(/-act=create/)) { wait_on_creation = true; createPage(); } openFileBrowser(field_name, win, fb_title); return false; } function openFileBrowser(field_name, win, fb_title) { if(wait_on_creation) { window.setTimeout(function() {openFileBrowser(field_name, win, fb_title);}, 1000); } else { /*alert(fileURL);*/ tinyMCE.activeEditor.windowManager.open({ file : fileURL, title : fb_title, width : 550, height : 400, resizable : 'yes', inline : 'yes', close_previous : 'no' }, { window : win, input : field_name }); } }
{{vtIdiom: vt_str_createPage}} ({{vtGetValue: -template}}) {{vtIdiom: vt_str_change}}
{{vtIdiom: vt_msg0068}}