source: branches/1.2/workflow/js/phpeditor/main.js @ 1349

Revision 1349, 666 bytes checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
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.