.modal .oe_act_window.modal-body{
padding: 0;
}
+.modal .oe_button{
+ margin: 0 4px 0 0;
+}
input[type="radio"], input[type="checkbox"] {
margin-right: 4px;
margin-left: 4px;
font-size: 20px
.modal-footer
text-align: left
+ .oe_button
+ margin: 0 4px 0 0
.oe_act_window.modal-body
padding: 0
var exec_action = function() {
if (self.node.attrs.confirm) {
var def = $.Deferred();
- var dialog = instance.web.Dialog(this, {
+ var dialog = new instance.web.Dialog(this, {
title: _t('Confirm'),
buttons: [
{text: _t("Cancel"), click: function() {
button_delete = _.str.sprintf("<button class='oe_button oe_bold delme'><span> %s </span></button>",_t("Delete"));
button_edit = _.str.sprintf("<button class='oe_button oe_bold editme oe_highlight'><span> %s </span></button>",_t("Edit Event"));
-
- pop.$el.closest(".ui-dialog").find(".ui-dialog-buttonpane").prepend(button_delete);
- pop.$el.closest(".ui-dialog").find(".ui-dialog-buttonpane").prepend(button_edit);
+ pop.$el.closest(".modal").find(".modal-footer").prepend(button_delete);
+ pop.$el.closest(".modal").find(".modal-footer").prepend(button_edit);
$('.delme').click(
function() {