Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
c5c2b485
Commit
c5c2b485
authored
7 years ago
by
Géry Debongnie
Browse files
Options
Downloads
Patches
Plain Diff
[REF] web: put willStart method before start (AbstractField)
parent
31025540
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/web/static/src/js/fields/abstract_field.js
+8
-8
8 additions, 8 deletions
addons/web/static/src/js/fields/abstract_field.js
with
8 additions
and
8 deletions
addons/web/static/src/js/fields/abstract_field.js
+
8
−
8
View file @
c5c2b485
...
...
@@ -173,6 +173,14 @@ var AbstractField = Widget.extend({
this
.
formatOptions
=
{};
this
.
parseOptions
=
{};
},
/**
* Loads the libraries listed in this.jsLibs and this.cssLibs
*
* @override
*/
willStart
:
function
()
{
return
$
.
when
(
ajax
.
loadLibs
(
this
),
this
.
_super
.
apply
(
this
,
arguments
));
},
/**
* When a field widget is appended to the DOM, its start method is called,
* and will automatically call render. Most widgets should not override this.
...
...
@@ -187,14 +195,6 @@ var AbstractField = Widget.extend({
return
self
.
_render
();
});
},
/**
* Loads the libraries listed in this.jsLibs and this.cssLibs
*
* @override
*/
willStart
:
function
()
{
return
$
.
when
(
ajax
.
loadLibs
(
this
),
this
.
_super
.
apply
(
this
,
arguments
));
},
//--------------------------------------------------------------------------
// Public
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment