[IMP] Mass rename \t to 4 spaces
bzr revid: nicolas.vanhoren@openerp.com-20120802144623-ykl5te005ytnv584
This commit is contained in:
parent
d9aaf5c2d1
commit
2c57c15491
|
@ -1377,7 +1377,7 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
|
|||
processData: false
|
||||
}, url);
|
||||
if (this.synch)
|
||||
ajax.async = false;
|
||||
ajax.async = false;
|
||||
return $.ajax(ajax);
|
||||
},
|
||||
rpc_jsonp: function(url, payload) {
|
||||
|
@ -1396,7 +1396,7 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
|
|||
data: data
|
||||
}, url);
|
||||
if (this.synch)
|
||||
ajax.async = false;
|
||||
ajax.async = false;
|
||||
var payload_str = JSON.stringify(payload);
|
||||
var payload_url = $.param({r:payload_str});
|
||||
if(payload_url.length < 2000) {
|
||||
|
|
|
@ -393,13 +393,13 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
|
|||
timer = setTimeout(waitLoop, CHECK_INTERVAL);
|
||||
},
|
||||
synchronized_mode: function(to_execute) {
|
||||
var synch = this.synch;
|
||||
this.synch = true;
|
||||
try {
|
||||
return to_execute();
|
||||
} finally {
|
||||
this.synch = synch;
|
||||
}
|
||||
var synch = this.synch;
|
||||
this.synch = true;
|
||||
try {
|
||||
return to_execute();
|
||||
} finally {
|
||||
this.synch = synch;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -540,10 +540,10 @@ $.async_when = function() {
|
|||
// special tweak for the web client
|
||||
var old_async_when = $.async_when;
|
||||
$.async_when = function() {
|
||||
if (instance.connection.synch)
|
||||
return $.when.apply(this, arguments);
|
||||
else
|
||||
return old_async_when.apply(this, arguments);
|
||||
if (instance.connection.synch)
|
||||
return $.when.apply(this, arguments);
|
||||
else
|
||||
return old_async_when.apply(this, arguments);
|
||||
};
|
||||
|
||||
/** Setup blockui */
|
||||
|
|
|
@ -803,7 +803,7 @@ instance.web.DataSet = instance.web.OldWidget.extend( /** @lends openerp.web.Da
|
|||
return this.ids.length;
|
||||
},
|
||||
alter_ids: function(n_ids) {
|
||||
this.ids = n_ids;
|
||||
this.ids = n_ids;
|
||||
},
|
||||
});
|
||||
instance.web.DataSetStatic = instance.web.DataSet.extend({
|
||||
|
@ -1042,7 +1042,7 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({
|
|||
self.cache.push({id: id, values: record});
|
||||
} else {
|
||||
// I assume cache value is prioritary
|
||||
cached.values = _.defaults(_.clone(cached.values), record);
|
||||
cached.values = _.defaults(_.clone(cached.values), record);
|
||||
}
|
||||
});
|
||||
return_records();
|
||||
|
@ -1067,7 +1067,7 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({
|
|||
return this._super(method, args, callback, error_callback);
|
||||
},
|
||||
alter_ids: function(n_ids) {
|
||||
this._super(n_ids);
|
||||
this._super(n_ids);
|
||||
this.on_change();
|
||||
},
|
||||
});
|
||||
|
|
|
@ -156,7 +156,7 @@ instance.web.DataImport = instance.web.Dialog.extend({
|
|||
});
|
||||
},
|
||||
toggle_import_button: function (newstate) {
|
||||
instance.web.dialog(this.$element, 'widget')
|
||||
instance.web.dialog(this.$element, 'widget')
|
||||
.find('.oe_import_dialog_button')
|
||||
.button('option', 'disabled', !newstate);
|
||||
},
|
||||
|
|
|
@ -435,7 +435,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
|||
container.hide();
|
||||
controller.do_hide();
|
||||
}
|
||||
// put the <footer> in the dialog's buttonpane
|
||||
// put the <footer> in the dialog's buttonpane
|
||||
if (self.$element.parent('.ui-dialog-content') && self.$element.find('footer')) {
|
||||
self.$element.parent('.ui-dialog-content').parent().find('div.ui-dialog-buttonset').hide()
|
||||
self.$element.find('footer').appendTo(
|
||||
|
|
|
@ -406,10 +406,10 @@
|
|||
<t t-name="ViewManager">
|
||||
<div class="oe_view_manager">
|
||||
<table class="oe_view_manager_header">
|
||||
<col width="20%"/>
|
||||
<col width="25%"/>
|
||||
<col width="20%"/>
|
||||
<col width="35%"/>
|
||||
<col width="20%"/>
|
||||
<col width="25%"/>
|
||||
<col width="20%"/>
|
||||
<col width="35%"/>
|
||||
<tr class="oe_header_row oe_header_row_top">
|
||||
<td colspan="2">
|
||||
<h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
|
||||
|
|
Loading…
Reference in New Issue