summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorjke-openerp <jke@openerp.com>2013-12-18 14:10:34 +0100
committerjke-openerp <jke@openerp.com>2013-12-18 14:10:34 +0100
commite4469e0aeb13a7b43efdc0dba1db64ce9eb2f96d (patch)
tree2b34f9b086e8851ae0d120d94b06cdd4cdabc821 /addons
parentb5059e1d525b0e774923fade7c1b2f183c499622 (diff)
parent0fd50c4750a5ca336954c5c6e4ca1fe414bd42aa (diff)
[MERGE] Merge with trunk
bzr revid: jke@openerp.com-20131218131034-61e6su19shmrgakz
Diffstat (limited to 'addons')
-rw-r--r--addons/web/__openerp__.py1
-rw-r--r--addons/web/static/src/js/search.js1
-rw-r--r--addons/web_graph/__openerp__.py1
-rw-r--r--addons/web_graph/static/lib/dropdown.js92
4 files changed, 1 insertions, 94 deletions
diff --git a/addons/web/__openerp__.py b/addons/web/__openerp__.py
index bfbc1e0b067..51d433a2656 100644
--- a/addons/web/__openerp__.py
+++ b/addons/web/__openerp__.py
@@ -37,6 +37,7 @@ This module provides the core of the OpenERP Web Client.
"static/lib/jquery.tipsy/jquery.tipsy.js",
"static/lib/jquery.textext/jquery.textext.js",
"static/lib/jquery.timeago/jquery.timeago.js",
+ "static/lib/bootstrap/js/bootstrap.js",
"static/lib/qweb/qweb2.js",
"static/lib/underscore/underscore.js",
"static/lib/underscore.string/lib/underscore.string.js",
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index c3ef682bfcc..45170e08a96 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -535,7 +535,6 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
resp(_(arguments).chain()
.compact()
.map(function (completion) {
- console.log(completion);
if (completion.length && completion[0].facet !== undefined) {
completion[0].first = true;
}
diff --git a/addons/web_graph/__openerp__.py b/addons/web_graph/__openerp__.py
index c62a1877ee0..b40b9f5c9d9 100644
--- a/addons/web_graph/__openerp__.py
+++ b/addons/web_graph/__openerp__.py
@@ -15,7 +15,6 @@ Graph Views for Web Client.
'version': '3.0',
'depends': ['web'],
'js': [
- 'static/lib/dropdown.js',
'static/lib/flotr2/lib/bean.js',
'static/lib/flotr2/js/Flotr.js',
'static/lib/flotr2/js/DefaultOptions.js',
diff --git a/addons/web_graph/static/lib/dropdown.js b/addons/web_graph/static/lib/dropdown.js
deleted file mode 100644
index 54b61c5e9d0..00000000000
--- a/addons/web_graph/static/lib/dropdown.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/* ============================================================
- * bootstrap-dropdown.js v2.0.2
- * http://twitter.github.com/bootstrap/javascript.html#dropdowns
- * ============================================================
- * Copyright 2012 Twitter, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============================================================ */
-
-
-!function( $ ){
-
- "use strict"
-
- /* DROPDOWN CLASS DEFINITION
- * ========================= */
-
- var toggle = '[data-toggle="dropdown"]'
- , Dropdown = function ( element ) {
- var $el = $(element).on('click.dropdown.data-api', this.toggle)
- $('html').on('click.dropdown.data-api', function () {
- $el.parent().removeClass('open')
- })
- }
-
- Dropdown.prototype = {
-
- constructor: Dropdown
-
- , toggle: function ( e ) {
- var $this = $(this)
- , selector = $this.attr('data-target')
- , $parent
- , isActive
-
- if (!selector) {
- selector = $this.attr('href')
- selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
- }
-
- $parent = $(selector)
- $parent.length || ($parent = $this.parent())
-
- isActive = $parent.hasClass('open')
-
- clearMenus()
- !isActive && $parent.toggleClass('open')
-
- return false
- }
-
- }
-
- function clearMenus() {
- $(toggle).parent().removeClass('open')
- }
-
-
- /* DROPDOWN PLUGIN DEFINITION
- * ========================== */
-
- $.fn.dropdown = function ( option ) {
- return this.each(function () {
- var $this = $(this)
- , data = $this.data('dropdown')
- if (!data) $this.data('dropdown', (data = new Dropdown(this)))
- if (typeof option == 'string') data[option].call($this)
- })
- }
-
- $.fn.dropdown.Constructor = Dropdown
-
-
- /* APPLY TO STANDARD DROPDOWN ELEMENTS
- * =================================== */
-
- $(function () {
- $('html').on('click.dropdown.data-api', clearMenus)
- $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
- })
-
-}( window.jQuery ); \ No newline at end of file