Add codeview

This commit is contained in:
YNH Webdev
2013-09-28 16:24:51 +02:00
parent d3299f8e06
commit 01327a4b06
14 changed files with 6618 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
note
description: "Summary description for {WSF_CODEVIEW_CONTROL}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
WSF_CODEVIEW_CONTROL
inherit
WSF_TEXTAREA_CONTROL
rename
make_textarea as make_codeview
end
create
make_codeview
end

View File

@@ -49,6 +49,18 @@ feature -- Actions
actions.add (modal)
end
start_modal_big(url:STRING; title:STRING)
--Start a modal window containg an other or the same page
local
modal:WSF_JSON_OBJECT
do
create modal.make
modal.put_string ("start_modal_big", "type")
modal.put_string (url, "url")
modal.put_string (title, "title")
actions.add (modal)
end
show_alert(mesage:STRING)
--Start a modal window containg an other or the same page
local

View File

@@ -111,7 +111,7 @@ feature -- Implementation
Result.append ("<script src=%"assets/widget.js%"></script>")
Result.append ("<script type=%"text/javascript%">$(function() {var page= new WSF_PAGE_CONTROL(")
Result.append (full_state.representation)
Result.append (");page.attach_events();});</script>")
Result.append (");page.initialize();});</script>")
Result.append ("</body></html>")
else
Result.append ("<div data-name=%"" + control_name + "%" data-type=%"WSF_PAGE_CONTROL%">")