Small changes/fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user