fix paging scripts
This commit is contained in:
+1
-3
@@ -88,14 +88,12 @@ script:
|
|||||||
if(id(actual_page) >= id(nr_of_pages)) {
|
if(id(actual_page) >= id(nr_of_pages)) {
|
||||||
id(actual_page) = 0;
|
id(actual_page) = 0;
|
||||||
}
|
}
|
||||||
# - display.page.show_next: main_display
|
|
||||||
- script.execute: update_all
|
- script.execute: update_all
|
||||||
- id: prev_page
|
- id: prev_page
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(actual_page) = id(actual_page) - 1;
|
id(actual_page) = id(actual_page) - 1;
|
||||||
if(id(actual_page) <= 0) {
|
if(id(actual_page) < 0) {
|
||||||
id(actual_page) = id(nr_of_pages);
|
id(actual_page) = id(nr_of_pages);
|
||||||
}
|
}
|
||||||
# - display.page.show_previous: main_display
|
|
||||||
- script.execute: update_all
|
- script.execute: update_all
|
||||||
|
|||||||
Reference in New Issue
Block a user