Fix typo from changeset 46a4cfae7418
This commit is contained in:
1 parent
a8c3da97da
commit
d643e42a51
3 files changed
+11
-10
No files matched your search
+4
-4
@@ -2247,7 +2247,7 @@
|
||||
.append(jQuery('<span/>').text('Always ignore this warning.'))
|
||||
);
|
||||
dialog.body.append(jQuery('<p/>').text('Do you want to proceed?'));
|
||||
footer.children().remove();
|
||||
dialog.footer.children().remove();
|
||||
jQuery('<button/>', {
|
||||
'class': 'btn btn-link'
|
||||
}).append('No').click(function() {
|
||||
@@ -2318,7 +2318,7 @@
|
||||
}).append('Cancel').click(function() {
|
||||
this.close(dialog);
|
||||
prm.resolve('cancel');
|
||||
}.bind(this)).appendTo(footer);
|
||||
}.bind(this)).appendTo(dialog.footer);
|
||||
jQuery('<button/>', {
|
||||
'class': 'btn btn-default'
|
||||
}).append('No').click(function() {
|
||||
@@ -2381,7 +2381,7 @@
|
||||
build_dialog: function(model, record_id, context, prm) {
|
||||
var dialog = Sao.common.ConcurrencyDialog._super.build_dialog.call(
|
||||
this);
|
||||
dialog.find('.modal-dialog'
|
||||
dialog.modal.find('.modal-dialog'
|
||||
).removeClass('modal-sm').addClass('modal-lg');
|
||||
dialog.add_title('Concurrency Exception');
|
||||
dialog.body.append(jQuery('<div/>', {
|
||||
@@ -2440,7 +2440,7 @@
|
||||
build_dialog: function(title, details, prm) {
|
||||
var dialog = Sao.common.ConcurrencyDialog._super.build_dialog.call(
|
||||
this);
|
||||
dialog.find('.modal-dialog'
|
||||
dialog.modal.find('.modal-dialog'
|
||||
).removeClass('modal-sm').addClass('modal-lg');
|
||||
dialog.add_title('Application Error');
|
||||
dialog.body.append(jQuery('<div/>', {
|
||||
|
||||
+6
-6
@@ -251,31 +251,31 @@ var Sao = {};
|
||||
init: function(title, class_, size) {
|
||||
size = size || 'sm';
|
||||
this.modal = jQuery('<div/>', {
|
||||
'class': class_ + 'modal fade',
|
||||
'class': class_ + ' modal fade',
|
||||
'role': 'dialog'
|
||||
});
|
||||
this.content = jQuery('<form/>', {
|
||||
'class': 'modal-content'
|
||||
}).appendTo(jQuery('<div/>', {
|
||||
'class': 'modal-dialog modal-' + size
|
||||
}).appendTo(dialog));
|
||||
}).appendTo(this.modal));
|
||||
this.header = jQuery('<div/>', {
|
||||
'class': 'modal-header'
|
||||
}).appendTo(content);
|
||||
}).appendTo(this.content);
|
||||
if (title) {
|
||||
this.add_title(title);
|
||||
}
|
||||
this.body = jQuery('<div/>', {
|
||||
'class': 'modal-body'
|
||||
}).appendTo(content);
|
||||
}).appendTo(this.content);
|
||||
this.footer = jQuery('<div/>', {
|
||||
'class': 'modal-footer'
|
||||
}).appendTo(content);
|
||||
}).appendTo(this.content);
|
||||
},
|
||||
add_title: function(title) {
|
||||
this.header.append(jQuery('<h4/>', {
|
||||
'class': 'modal-title'
|
||||
}).content(title));
|
||||
}).append(title));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -204,6 +204,7 @@
|
||||
Sao.Wizard.Dialog._super.init.call(this);
|
||||
var dialog = new Sao.Dialog(name, 'wizard-dialog', 'lg');
|
||||
this.dialog = dialog.modal;
|
||||
this.content = dialog.content;
|
||||
this.footer = dialog.footer;
|
||||
dialog.body.append(this.widget);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user