Commit 2b80b8a5 authored by Ludovic Kiefer's avatar Ludovic Kiefer Committed by Romain Courteaud

erp5_run_my_doc: add 'add new' button when editing the last slide

parent 11c8c6ff
...@@ -219,14 +219,25 @@ ...@@ -219,14 +219,25 @@
type: 'button', type: 'button',
'class': 'list-btn ui-icon-th ui-btn-icon-left', 'class': 'list-btn ui-icon-th ui-btn-icon-left',
text: translation_dict.List text: translation_dict.List
}), })
);
if (disable_next) {
button_list.push(
domsugar('button', {
type: 'button',
'class': 'display-new ui-icon-plus-circle ui-btn-icon-left',
text: translation_dict['New Slide']
})
);
} else {
button_list.push(
domsugar('button', { domsugar('button', {
type: 'button', type: 'button',
disabled: disable_next,
'class': 'next-btn ui-icon-forward ui-btn-icon-left', 'class': 'next-btn ui-icon-forward ui-btn-icon-left',
text: translation_dict.Next text: translation_dict.Next
}) })
); );
}
return button_list; return button_list;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment