[FIX] dict notation for js reserved words in options (Fixes #2957)
This commit is contained in:
parent
c521bb2835
commit
6c779e736a
|
@ -93,7 +93,7 @@
|
||||||
options = _.extend({
|
options = _.extend({
|
||||||
window_title: '',
|
window_title: '',
|
||||||
field_name: '',
|
field_name: '',
|
||||||
default: '',
|
'default': '', // dict notation for IE<9
|
||||||
init: function() {}
|
init: function() {}
|
||||||
}, options || {});
|
}, options || {});
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
var dialog = $(openerp.qweb.render('website.prompt', options)).appendTo("body");
|
var dialog = $(openerp.qweb.render('website.prompt', options)).appendTo("body");
|
||||||
options.$dialog = dialog;
|
options.$dialog = dialog;
|
||||||
var field = dialog.find(options.field_type).first();
|
var field = dialog.find(options.field_type).first();
|
||||||
field.val(options.default);
|
field.val(options['default']); // dict notation for IE<9
|
||||||
field.fillWith = function (data) {
|
field.fillWith = function (data) {
|
||||||
if (field.is('select')) {
|
if (field.is('select')) {
|
||||||
var select = field[0];
|
var select = field[0];
|
||||||
|
|
Loading…
Reference in New Issue