Fix dropdown list, clean up actions
This commit is contained in:
@@ -9,7 +9,7 @@ class
|
||||
|
||||
inherit
|
||||
|
||||
WSF_STATELESS_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
rename
|
||||
make as make_multi_control,
|
||||
make_with_tag_name as make_multi_control_with_tag_name
|
||||
|
||||
@@ -33,38 +33,41 @@ feature {NONE} -- Initialization
|
||||
|
||||
feature -- Actions
|
||||
|
||||
start_modal (url: STRING; title: STRING)
|
||||
start_modal (url: STRING; title: STRING; big: BOOLEAN)
|
||||
--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", "type")
|
||||
if big then
|
||||
modal.put_string ("start_modal_big", "type")
|
||||
else
|
||||
modal.put_string ("start_modal", "type")
|
||||
end
|
||||
modal.put_string (url, "url")
|
||||
modal.put_string (title, "title")
|
||||
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)
|
||||
show_alert (message: STRING)
|
||||
--Start a modal window containg an other or the same page
|
||||
local
|
||||
modal: WSF_JSON_OBJECT
|
||||
do
|
||||
create modal.make
|
||||
modal.put_string ("show_alert", "type")
|
||||
modal.put_string (mesage, "message")
|
||||
modal.put_string (message, "message")
|
||||
actions.add (modal)
|
||||
end
|
||||
|
||||
redirect (url: STRING)
|
||||
--Redirect to an other page
|
||||
local
|
||||
modal: WSF_JSON_OBJECT
|
||||
do
|
||||
create modal.make
|
||||
modal.put_string ("redirect", "type")
|
||||
modal.put_string (url, "url")
|
||||
actions.add (modal)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user