summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/libs/jquery.js
AgeCommit message (Collapse)Author
2018-03-22[FIX] base: settings view match on label.textJeremy Kersten
Before this commit, search was broken because containsLike was searching on the innerHtml. (3dd93ed129) Settings use _wordHighlighter to change the background of the matching text into the label, so the label was not only text, but html. <label><span class="highlighter">Mul</span>ti-company</label> : looking for (mul) After this commit, the match is based on the text content and not on the html.
2017-09-29[FIX] web: max one wiggle per readonly clickNicolas Lempereur
The wiggling effect of the edit button when clicking on the form (hinting that to change the form you should edit it) could happen several times. With 85d1e76 there was also a visual deffect on the Edit button when the wiggle happened several times, because bounce are stacked but the CSS class was removed after the first bounce was removed.
2017-08-03[REF] web, *: improve behavior of jQuery extension 'prependEvent'qsm-odoo
* web_editor Odoo extends jQuery to add some utility functions. The 'prependEvent' one add the possibility to add an event handler on an element (like the jQuery built-in 'on' function) but to be executed before the already binded ones. This function was however incomplete and did not allow to use jQuery namespaced events.
2017-08-03[REF] web, *: create jQuery ':hasVisibility' and ':hasOpacity' selectorsqsm-odoo
* web_editor, web_tour jQuery has the built-in ':visible' selector. This is however not enough as this only checks if the element and its parents have a visible 'display' property. Ironically, if the element has the 'visibility' property set to 'hidden', it will be considered ':visible' by jQuery. This commit creates the ':hasVisibility' and ':hasOpacity' selectors which respectively check if the element and its parents have a visible 'visibility' property and a visible 'opacity' property.
2017-06-21[IMP] web, *: reorganize our libraries' extensionsqsm-odoo
* web_editor, web_tour, website_event_track Before this commit, one JS file was responsible for all the library extensions and fixes. There were two main problems with this system: - The file was only available in the backend (as some extensions are made on backend-only libraries). - Some other modules were doing library customizations. This commit creates one file per library to regroup their associated customization and adds them in the right asset. These are placed in the web module and every other module should avoid doing customizations. This allows to have libraries consistency accross all modules and between the backend and the frontend.