Commit 8a7c732a authored by Ludovic Kiefer's avatar Ludovic Kiefer

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

parent 64dad9e2
......@@ -225,14 +225,25 @@
type: 'button',
'class': 'list-btn ui-icon-th ui-btn-icon-left',
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', {
type: 'button',
disabled: disable_next,
'class': 'next-btn ui-icon-forward ui-btn-icon-left',
text: translation_dict.Next
})
);
}
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