3
0
Fork 0

[FIX]: More TravisCI LINT errors

[FIX]: Missing semicolon in web_widget_timepicker.js
9.0
docmfried 2016-05-18 17:58:37 +02:00
parent 4d70b99df9
commit c5940823fa
4 changed files with 24 additions and 23 deletions

View File

@ -16,13 +16,13 @@
],
'css': [
'static/src/lib/jquery.timerpicker/jquery.timepicker.css',
'static/src/css/web_widget_timepicker.css'
'static/src/css/web_widget_timepicker.css'
],
'js': [
'static/src/lib/jquery.timerpicker/jquery.timepicker.js',
'static/src/js/web_widget_timepicker.js',
],
'qweb' : [
'qweb': [
'static/src/xml/web_widget_timepicker.xml'
],
@ -31,6 +31,6 @@
'views/web_widget_timepicker_assets.xml'
],
#Installation options
# Installation options
"installable": True,
}

View File

@ -35,7 +35,7 @@ odoo.define('web_widget_timepicker.form_widgets', function (require) {
if(typeof this.node.attrs.options !== 'undefined' && this.node.attrs.options.length > 0 ) {
var custom_options = eval('('+ this.node.attrs.options +')')
var custom_options = eval('('+ this.node.attrs.options +')');
// for(var key in custom_options) {
// console.log('attr key : ' + key);

View File

@ -1,20 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<templates id="template" xml:space="preserve">
<t t-name="TimePickerField">
<span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
<t t-if="!widget.get('effective_readonly')">
<input t-att-type="'text'"
class="o_timepicker_input"
t-att-id="widget.id_for_label"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
t-att-placeholder="widget.node.attrs.placeholder"
t-att-maxlength="widget.field.size"/>
<span class="fa fa-clock-o o_timepicker_button"/>
</t>
<t t-if="widget.get('effective_readonly')">
<span class="oe_form_time_content"></span>
</t>
</span>
</t>
<t t-name="TimePickerField">
<span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
<t t-if="!widget.get('effective_readonly')">
<input t-att-type="'text'"
class="o_timepicker_input"
t-att-id="widget.id_for_label"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
t-att-placeholder="widget.node.attrs.placeholder"
t-att-maxlength="widget.field.size"/>
<span class="fa fa-clock-o o_timepicker_button"/>
</t>
<t t-if="widget.get('effective_readonly')">
<span class="oe_form_time_content"></span>
</t>
</span>
</t>
</templates>