Your IP : 172.28.240.42


Current Path : /var/www/html/clients/rebirth.e-nk.ru/engine/lib/external/tinymce/plugins/lseditor/js/
Upload File :
Current File : /var/www/html/clients/rebirth.e-nk.ru/engine/lib/external/tinymce/plugins/lseditor/js/image.js

var lsImageDialog = {
	init : function() {
		
	},

	insert : function() {
		
	},
	
	ajaxUploadImg: function(form) {  
            if (typeof(form)=='string') {
                form=$(form);
            }
            var iFrame = new iFrameFormRequest(form.getProperty('id'),{
                url: tinyMCEPopup.getWindowArg('ajaxurl')+'upload/image/',
                dataType: 'json',
                params: {security_ls_key: tinyMCEPopup.getWindowArg('LIVESTREET_SECURITY_KEY')},
                onComplete: function(response){
                    if (response.bStateError) {
                        tinyMCEPopup.getWindowArg('msgErrorBox').alert(req.responseJS.sMsgTitle,response.sMsg);
                    } else {
                       tinyMCEPopup.editor.execCommand('mceInsertContent', false, response.sText); 
                        tinyMCEPopup.close();   	
                    }
                }
            });
            iFrame.send();
    }
};

tinyMCEPopup.onInit.add(lsImageDialog.init, lsImageDialog);