[FIX] website snippet: When duplicating a column, the column becomes a col-md-1 instead of keeping existing width
bzr revid: chm@openerp.com-20140228132507-0s6y5k3vkbmusvf1
This commit is contained in:
parent
ce1ff0a854
commit
abcd7e4926
|
@ -1233,7 +1233,6 @@
|
||||||
on_clone: function () {
|
on_clone: function () {
|
||||||
var $clone = this.$target.clone(false);
|
var $clone = this.$target.clone(false);
|
||||||
var _class = $clone.attr("class").replace(/\s*(col-lg-offset-|col-md-offset-)([0-9-]+)/g, '');
|
var _class = $clone.attr("class").replace(/\s*(col-lg-offset-|col-md-offset-)([0-9-]+)/g, '');
|
||||||
_class += ' col-md-1';
|
|
||||||
$clone.attr("class", _class);
|
$clone.attr("class", _class);
|
||||||
this.$target.after($clone);
|
this.$target.after($clone);
|
||||||
this.hide_remove_button();
|
this.hide_remove_button();
|
||||||
|
|
Loading…
Reference in New Issue