anchor.diff:  Compile = wf:f("~s",[wf:qs("hidden_checkbox")]),
   file:write_file(Path,Content),%TODO check if file is writed, make backup before save
   if Compile == "checked" -> wf:insert_bottom("cmdLog","File saved, compile:\n"),event(compile); 
  -true->wf:insert_bottom("cmdLog","File saved but not compiled\n") end;  
  +true->wf:insert_bottom("cmdLog","File saved but not compiled\n") end,  
  +wf:wire("obj('cmdlog').scrollTop = obj('cmdlog').scrollHeight;");
   
   %>>>
   %file clicked on tree for open
  
positive.code: #panel {id="container",body=[
  %%Top - North
      #panel {id="topbuttons", class="ui-layout-north", body=[ 
                    #button { text="Refresh Tree", postback=refresh_tree },   
                    #button { text="Save Current",actions=
                        #event{type=click,                  
                        actions="var f=editAreaLoader.getCurrentFile('editor');var  Path=f.id; var Content = f.text; $('.wfid_hidden_data').attr('value', Content);$('.wfid_hidden_path').attr('value', Path); editAreaLoader.setFileEditedMode('editor', f.id, 0);",postback=save_current}}, 
      #button { text="Compile!", postback=compile },
      #checkbox { id=compileonsave, text="Compile On Save", value="checked", checked=true,
      actions=#event{type=click,actions="if ($('.wfid_hidden_checkbox').val()=='checked') {$('.wfid_hidden_checkbox').attr('value', 'unchecked');} else {$('.wfid_hidden_checkbox').attr('value', 'checked');};"}} %#checkbox have bug!  
       ]},
  
negative.code: 
  
  %Footer - South    
     #panel {id="footer", class="ui-layout-south",body=[
     
     #panel {id="tabs",body=[#list{body=[ #listitem{body=[#link {text="Commands Log",url="#tab1",id="tablink"}]}, #listitem{body=[#link { text="Report Log",url="#tab2",id="tablink"}]}, #listitem{show_if = EnableShell ,body=[#link {text="Unix Shell",url="#tab3",id="tablink"}]} ]},
     #panel {id="tab1",body=[#textarea{id="cmdlog", text="Executed commands Log\n"}]},
     #panel {id="tab2",body=[#textarea{id="reportlog", text="Report Log\n"}]},
     #panel {show_if = EnableShell ,id="tab3",body=[#textarea{id="bashshell", text="Unix Shell\n"}]}
      ]}
     
      ]},
  