function jsShowDialogue() { this.srcAjax = 'libs/actions-ajax.php'; this.method = 'POST'; this.makce = null; this.sakce = null; this.dialog_id = null; this.name = null; this.res = Array(); } jsShowDialogue.prototype.displayDialog = function(cId, width, height, makce, sakce, name) { fn.displayLoading(true); this.makce = makce; //'zbozi' this.sakce = sakce; //'getZbozi' if((makce == 'montazni_plan' && dgShow.sakce == 'getData') || makce == 'objednavka' || (makce == 'montazni_vozy' && dgShow.sakce == 'getData')) { this.dialog_id = cId; } var special = ''; //alert(cId); var req = new aObj(this.srcAjax); req.callback = function(responseTxt, responseStat) { if( responseStat == 200 ) { //alert(responseTxt); eval(responseTxt); dg.name = name; dg.dialogWidth = width; //"996" dg.dialogHeight = height; //"500" dg.okButton = dgShow.res['okButton']; dg.cancellButton = dgShow.res['cancellButton']; dg.zalozky = dgShow.res['zalozky']; dg.create(); dg.createZalozky(); dg.show(); if(dgShow.res['fck'] == undefined) dgShow.res['fck'] = ''; //CKFinder.SetupCKEditor( null, 'ckfinder/' ); dg.fckArray[dg.parent] = new Array(); if(dgShow.res['fck'].length > 0) { for(var i=0;i