Small changes/fixes

This commit is contained in:
Severin Münger
2013-09-13 01:08:18 +02:00
parent 9c65194d91
commit f53974b138
8 changed files with 57 additions and 33 deletions

View File

@@ -13,14 +13,14 @@ feature --State
-- Return state which contains the current html and if there is an event handle attached
do
create Result.make
Result.put (create {JSON_NUMBER}.make_integer(page), create {JSON_STRING}.make_json("page"))
Result.put (create {JSON_NUMBER}.make_integer(page_size), create {JSON_STRING}.make_json("page_size"))
Result.put (create {JSON_NUMBER}.make_integer (page), create {JSON_STRING}.make_json ("page"))
Result.put (create {JSON_NUMBER}.make_integer (page_size), create {JSON_STRING}.make_json ("page_size"))
if attached sort_column as a_sort_column then
Result.put (create {JSON_STRING}.make_json(a_sort_column), create {JSON_STRING}.make_json("sort_column"))
Result.put (create {JSON_STRING}.make_json (a_sort_column), create {JSON_STRING}.make_json ("sort_column"))
else
Result.put (create {JSON_NULL}, create {JSON_STRING}.make_json("sort_column"))
Result.put (create {JSON_NULL}, create {JSON_STRING}.make_json ("sort_column"))
end
Result.put (create {JSON_BOOLEAN}.make_boolean(sort_direction), create {JSON_STRING}.make_json("sort_direction"))
Result.put (create {JSON_BOOLEAN}.make_boolean (sort_direction), create {JSON_STRING}.make_json ("sort_direction"))
end
set_state (new_state: JSON_OBJECT)
@@ -40,6 +40,7 @@ feature --State
sort_direction := new_sort_direction.item
end
end
feature
set_page (a_page: like page)
@@ -71,6 +72,7 @@ feature
sort_direction: BOOLEAN
data: ITERABLE [G]
deferred
end
deferred
end
end