Add codeview
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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%">")
|
||||
|
||||
Reference in New Issue
Block a user