Skip to content
Permalink
Browse files

[IMP] website: improve UX of change logo/font size

in this commit, we have removed the 'V' box and when the user click outside the box, or tab, it validate the size entered

Task ID: 1952964
  • Loading branch information...
jpr-odoo committed Mar 20, 2019
1 parent edd659f commit daabae865939a02f43dd34a5890bbf0f33e5ead9
@@ -18,8 +18,8 @@ var QuickEdit = Widget.extend({
template: 'website.theme_customize_active_input',
events: {
'keydown input': '_onInputKeydown',
'click .btn-primary': '_onSaveClick',
'click .btn-secondary': '_onResetClick',
'blur input[type="text"]': '_onFocusLose',
},

/**
@@ -92,7 +92,11 @@ var QuickEdit = Widget.extend({
/**
* @private
*/
_onSaveClick: function () {
_onFocusLose: function (ev) {
if ($(ev.relatedTarget).is('.btn-secondary.fa-undo')) {
// when we click reset button
this._onResetClick();
}
this._save();
},
/**
@@ -66,7 +66,6 @@
<input type="text" class="form-control" t-att-value="widget.value"/>
<div class="input-group-append">
<div t-if="widget.unit" class="input-group-text"><t t-esc="widget.unit"/></div>
<button type="button" class="btn btn-primary fa fa-check" title="Save"/>
<button type="button" class="btn btn-secondary fa fa-undo" title="Reset"/>
</div>
</div>

0 comments on commit daabae8

Please sign in to comment.
You can’t perform that action at this time.