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

Revision 1349, 668 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*/
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.