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

Revision 6779, 668 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*/
20
21function phpeditor_salvar()
22{
23        var hndSalvar = function(data) {
24                show_messages(data);
25        };
26        var txtcode;
27
28        document.title = editor.window_title;
29        txtcode = editor.getContents();
30        frmSend.code.value = txtcode;
31        cExecuteFormData("$this.bo_editor.save_resource",frmSend,hndSalvar);
32        editor.setInputFocus();
33        editor.unsaved = false;
34}
Note: See TracBrowser for help on using the repository browser.