source: sandbox/2.3-MailArchiver/workflow/js/phpeditor/main.js @ 6779

Revision 6779, 666 bytes checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1function show_messages(text)
2{
3        messages.addText(text);
4}
5
6
7function phpeditor_checksyntax()
8{
9        var chkSyntax = function(data) {
10                show_messages(data);
11        };
12        var txtcode;
13
14        txtcode = editor.getContents();
15        frmSend.code.value = txtcode;
16        cExecuteFormData("$this.bo_editor.check_syntax",frmSend,chkSyntax);
17        editor.setInputFocus();
18}
19
20function phpeditor_salvar()
21{
22        var hndSalvar = function(data) {
23                show_messages(data);
24        };
25        var txtcode;
26
27        txtcode = editor.getContents();
28        frmSend.code.value = txtcode;
29        cExecuteFormData("$this.bo_editor.save_php_source",frmSend,hndSalvar);
30        document.title = editor.window_title;
31        editor.setInputFocus();
32        editor.unsaved = false;
33}
Note: See TracBrowser for help on using the repository browser.