5,735 changes: 4,015 additions & 1,720 deletions geonode/static/lib/js/angular.js

Large diffs are not rendered by default.

588 changes: 303 additions & 285 deletions geonode/static/lib/js/angular.min.js

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions geonode/static/lib/js/assets.min.js

Large diffs are not rendered by default.

5,272 changes: 2,636 additions & 2,636 deletions geonode/static/lib/js/bootstrap-datetimepicker.js

Large diffs are not rendered by default.

6,276 changes: 3,138 additions & 3,138 deletions geonode/static/lib/js/bootstrap-select.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions geonode/static/lib/js/bootstrap-select.min.js

Large diffs are not rendered by default.

209 changes: 120 additions & 89 deletions geonode/static/lib/js/bootstrap.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions geonode/static/lib/js/bootstrap.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions geonode/static/lib/js/button.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: button.js v3.3.7
* http://getbootstrap.com/javascript/#buttons
* Bootstrap: button.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#buttons
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -19,7 +19,7 @@
this.isLoading = false
}

Button.VERSION = '3.3.7'
Button.VERSION = '3.4.0'

Button.DEFAULTS = {
loadingText: 'loading...'
Expand Down
23 changes: 16 additions & 7 deletions geonode/static/lib/js/carousel.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: carousel.js v3.3.7
* http://getbootstrap.com/javascript/#carousel
* Bootstrap: carousel.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#carousel
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand Down Expand Up @@ -30,7 +30,7 @@
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
}

Carousel.VERSION = '3.3.7'
Carousel.VERSION = '3.4.0'

Carousel.TRANSITION_DURATION = 600

Expand Down Expand Up @@ -144,7 +144,9 @@
var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
if ($.support.transition && this.$element.hasClass('slide')) {
$next.addClass(type)
$next[0].offsetWidth // force reflow
if (typeof $next === 'object' && $next.length) {
$next[0].offsetWidth // force reflow
}
$active.addClass(direction)
$next.addClass(direction)
$active
Expand Down Expand Up @@ -206,10 +208,17 @@
// =================

var clickHandler = function (e) {
var href
var $this = $(this)
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
var href = $this.attr('href')
if (href) {
href = href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
}

var target = $this.attr('data-target') || href
var $target = $(document).find(target)

if (!$target.hasClass('carousel')) return

var options = $.extend({}, $target.data(), $this.data())
var slideIndex = $this.attr('data-slide-to')
if (slideIndex) options.interval = false
Expand Down
12 changes: 6 additions & 6 deletions geonode/static/lib/js/collapse.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: collapse.js v3.3.7
* http://getbootstrap.com/javascript/#collapse
* Bootstrap: collapse.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#collapse
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand Down Expand Up @@ -30,7 +30,7 @@
if (this.options.toggle) this.toggle()
}

Collapse.VERSION = '3.3.7'
Collapse.VERSION = '3.4.0'

Collapse.TRANSITION_DURATION = 350

Expand Down Expand Up @@ -137,7 +137,7 @@
}

Collapse.prototype.getParent = function () {
return $(this.options.parent)
return $(document).find(this.options.parent)
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
.each($.proxy(function (i, element) {
var $element = $(element)
Expand All @@ -160,7 +160,7 @@
var target = $trigger.attr('data-target')
|| (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7

return $(target)
return $(document).find(target)
}


Expand Down
10 changes: 5 additions & 5 deletions geonode/static/lib/js/dropdown.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: dropdown.js v3.3.7
* http://getbootstrap.com/javascript/#dropdowns
* Bootstrap: dropdown.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#dropdowns
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -19,7 +19,7 @@
$(element).on('click.bs.dropdown', this.toggle)
}

Dropdown.VERSION = '3.3.7'
Dropdown.VERSION = '3.4.0'

function getParent($this) {
var selector = $this.attr('data-target')
Expand All @@ -29,7 +29,7 @@
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}

var $parent = selector && $(selector)
var $parent = selector && $(document).find(selector)

return $parent && $parent.length ? $parent : $this.parent()
}
Expand Down
340 changes: 170 additions & 170 deletions geonode/static/lib/js/index.js
Original file line number Diff line number Diff line change
@@ -1,170 +1,170 @@
// Following https://github.com/Leaflet/Leaflet/blob/master/PLUGIN-GUIDE.md
(function (factory, window) {

// define an AMD module that relies on 'leaflet'
if (typeof define === 'function' && define.amd) {
define(['leaflet'], factory);

// define a Common JS module that relies on 'leaflet'
} else if (typeof exports === 'object') {
module.exports = factory(require('leaflet'));
}

// attach your plugin to the global 'L' variable
if (typeof window !== 'undefined' && window.L) {
window.L.Control.NavBar = factory(L);
window.L.control.navbar = function (layer, options) {
return new window.L.Control.NavBar(layer, options);
};
}
}(function (L) {

var NavBar = L.Control.extend({
options: {
//position: 'topleft',
//center:,
//zoom :,
forwardTitle: 'Go forward in map view history',
backTitle: 'Go back in map view history',
homeTitle: 'Go to home map view'
},

onAdd: function(map) {

// Set options
if (!this.options.center) {
this.options.center = map.getCenter();
}
if (!this.options.zoom) {
this.options.zoom = map.getZoom();
}
options = this.options;

// Create toolbar
var controlName = 'leaflet-control-navbar',
container = L.DomUtil.create('div', controlName + ' leaflet-bar');

// Add toolbar buttons
this._homeButton = this._createButton(options.homeTitle, controlName + '-home', container, this._goHome);
this._fwdButton = this._createButton(options.forwardTitle, controlName + '-fwd', container, this._goFwd);
this._backButton = this._createButton(options.backTitle, controlName + '-back', container, this._goBack);

// Initialize view history and index
this._viewHistory = [{center: this.options.center, zoom: this.options.zoom}];
this._curIndx = 0;
this._updateDisabled();
map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
// Set intial view to home
map.setView(options.center, options.zoom);

return container;
},

onRemove: function(map) {
map.off('moveend', this._updateHistory, this);
},

_goHome: function() {
this._map.setView(this.options.center, this.options.zoom);
},

_goBack: function() {
if (this._curIndx !== 0) {
this._map.off('moveend', this._updateHistory, this);
this._map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
this._curIndx--;
this._updateDisabled();
var view = this._viewHistory[this._curIndx];
this._map.setView(view.center, view.zoom);
}
},

_goFwd: function() {
if (this._curIndx != this._viewHistory.length - 1) {
this._map.off('moveend', this._updateHistory, this);
this._map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
this._curIndx++;
this._updateDisabled();
var view = this._viewHistory[this._curIndx];
this._map.setView(view.center, view.zoom);
}
},

_createButton: function(title, className, container, fn) {
// Modified from Leaflet zoom control

var link = L.DomUtil.create('a', className, container);
link.href = '#';
link.title = title;

L.DomEvent
.on(link, 'mousedown dblclick', L.DomEvent.stopPropagation)
.on(link, 'click', L.DomEvent.stop)
.on(link, 'click', fn, this)
.on(link, 'click', this._refocusOnMap, this);

return link;
},

_updateHistory: function() {
var newView = {center: this._map.getCenter(), zoom: this._map.getZoom()};
var insertIndx = this._curIndx + 1;
this._viewHistory.splice(insertIndx, this._viewHistory.length - insertIndx, newView);
this._curIndx++;
// Update disabled state of toolbar buttons
this._updateDisabled();
},

_setFwdEnabled: function(enabled) {
var leafletDisabled = 'leaflet-disabled';
var fwdDisabled = 'leaflet-control-navbar-fwd-disabled';
if (enabled === true) {
L.DomUtil.removeClass(this._fwdButton, fwdDisabled);
L.DomUtil.removeClass(this._fwdButton, leafletDisabled);
}else {
L.DomUtil.addClass(this._fwdButton, fwdDisabled);
L.DomUtil.addClass(this._fwdButton, leafletDisabled);
}
},

_setBackEnabled: function(enabled) {
var leafletDisabled = 'leaflet-disabled';
var backDisabled = 'leaflet-control-navbar-back-disabled';
if (enabled === true) {
L.DomUtil.removeClass(this._backButton, backDisabled);
L.DomUtil.removeClass(this._backButton, leafletDisabled);
}else {
L.DomUtil.addClass(this._backButton, backDisabled);
L.DomUtil.addClass(this._backButton, leafletDisabled);
}
},

_updateDisabled: function() {
if (this._curIndx == (this._viewHistory.length - 1)) {
this._setFwdEnabled(false);
}else {
this._setFwdEnabled(true);
}

if (this._curIndx <= 0) {
this._setBackEnabled(false);
}else {
this._setBackEnabled(true);
}
}

});

L.Map.mergeOptions({
navBarControl: false
});

L.Map.addInitHook(function () {
if (this.options.navBarControl) {
this.navBarControl = (new NavBar()).addTo(this);
}
});

return NavBar;

}, window));
// Following https://github.com/Leaflet/Leaflet/blob/master/PLUGIN-GUIDE.md
(function (factory, window) {

// define an AMD module that relies on 'leaflet'
if (typeof define === 'function' && define.amd) {
define(['leaflet'], factory);

// define a Common JS module that relies on 'leaflet'
} else if (typeof exports === 'object') {
module.exports = factory(require('leaflet'));
}

// attach your plugin to the global 'L' variable
if (typeof window !== 'undefined' && window.L) {
window.L.Control.NavBar = factory(L);
window.L.control.navbar = function (layer, options) {
return new window.L.Control.NavBar(layer, options);
};
}
}(function (L) {

var NavBar = L.Control.extend({
options: {
//position: 'topleft',
//center:,
//zoom :,
forwardTitle: 'Go forward in map view history',
backTitle: 'Go back in map view history',
homeTitle: 'Go to home map view'
},

onAdd: function(map) {

// Set options
if (!this.options.center) {
this.options.center = map.getCenter();
}
if (!this.options.zoom) {
this.options.zoom = map.getZoom();
}
options = this.options;

// Create toolbar
var controlName = 'leaflet-control-navbar',
container = L.DomUtil.create('div', controlName + ' leaflet-bar');

// Add toolbar buttons
this._homeButton = this._createButton(options.homeTitle, controlName + '-home', container, this._goHome);
this._fwdButton = this._createButton(options.forwardTitle, controlName + '-fwd', container, this._goFwd);
this._backButton = this._createButton(options.backTitle, controlName + '-back', container, this._goBack);

// Initialize view history and index
this._viewHistory = [{center: this.options.center, zoom: this.options.zoom}];
this._curIndx = 0;
this._updateDisabled();
map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
// Set intial view to home
map.setView(options.center, options.zoom);

return container;
},

onRemove: function(map) {
map.off('moveend', this._updateHistory, this);
},

_goHome: function() {
this._map.setView(this.options.center, this.options.zoom);
},

_goBack: function() {
if (this._curIndx !== 0) {
this._map.off('moveend', this._updateHistory, this);
this._map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
this._curIndx--;
this._updateDisabled();
var view = this._viewHistory[this._curIndx];
this._map.setView(view.center, view.zoom);
}
},

_goFwd: function() {
if (this._curIndx != this._viewHistory.length - 1) {
this._map.off('moveend', this._updateHistory, this);
this._map.once('moveend', function() {this._map.on('moveend', this._updateHistory, this);}, this);
this._curIndx++;
this._updateDisabled();
var view = this._viewHistory[this._curIndx];
this._map.setView(view.center, view.zoom);
}
},

_createButton: function(title, className, container, fn) {
// Modified from Leaflet zoom control

var link = L.DomUtil.create('a', className, container);
link.href = '#';
link.title = title;

L.DomEvent
.on(link, 'mousedown dblclick', L.DomEvent.stopPropagation)
.on(link, 'click', L.DomEvent.stop)
.on(link, 'click', fn, this)
.on(link, 'click', this._refocusOnMap, this);

return link;
},

_updateHistory: function() {
var newView = {center: this._map.getCenter(), zoom: this._map.getZoom()};
var insertIndx = this._curIndx + 1;
this._viewHistory.splice(insertIndx, this._viewHistory.length - insertIndx, newView);
this._curIndx++;
// Update disabled state of toolbar buttons
this._updateDisabled();
},

_setFwdEnabled: function(enabled) {
var leafletDisabled = 'leaflet-disabled';
var fwdDisabled = 'leaflet-control-navbar-fwd-disabled';
if (enabled === true) {
L.DomUtil.removeClass(this._fwdButton, fwdDisabled);
L.DomUtil.removeClass(this._fwdButton, leafletDisabled);
}else {
L.DomUtil.addClass(this._fwdButton, fwdDisabled);
L.DomUtil.addClass(this._fwdButton, leafletDisabled);
}
},

_setBackEnabled: function(enabled) {
var leafletDisabled = 'leaflet-disabled';
var backDisabled = 'leaflet-control-navbar-back-disabled';
if (enabled === true) {
L.DomUtil.removeClass(this._backButton, backDisabled);
L.DomUtil.removeClass(this._backButton, leafletDisabled);
}else {
L.DomUtil.addClass(this._backButton, backDisabled);
L.DomUtil.addClass(this._backButton, leafletDisabled);
}
},

_updateDisabled: function() {
if (this._curIndx == (this._viewHistory.length - 1)) {
this._setFwdEnabled(false);
}else {
this._setFwdEnabled(true);
}

if (this._curIndx <= 0) {
this._setBackEnabled(false);
}else {
this._setBackEnabled(true);
}
}

});

L.Map.mergeOptions({
navBarControl: false
});

L.Map.addInitHook(function () {
if (this.options.navBarControl) {
this.navBarControl = (new NavBar()).addTo(this);
}
});

return NavBar;

}, window));
2 changes: 1 addition & 1 deletion geonode/static/lib/js/jquery.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion geonode/static/lib/js/leaflet-plugins.min.js

Large diffs are not rendered by default.

67 changes: 43 additions & 24 deletions geonode/static/lib/js/modal.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: modal.js v3.3.7
* http://getbootstrap.com/javascript/#modals
* Bootstrap: modal.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#modals
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -14,15 +14,16 @@
// ======================

var Modal = function (element, options) {
this.options = options
this.$body = $(document.body)
this.$element = $(element)
this.$dialog = this.$element.find('.modal-dialog')
this.$backdrop = null
this.isShown = null
this.originalBodyPad = null
this.scrollbarWidth = 0
this.options = options
this.$body = $(document.body)
this.$element = $(element)
this.$dialog = this.$element.find('.modal-dialog')
this.$backdrop = null
this.isShown = null
this.originalBodyPad = null
this.scrollbarWidth = 0
this.ignoreBackdropClick = false
this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'

if (this.options.remote) {
this.$element
Expand All @@ -33,7 +34,7 @@
}
}

Modal.VERSION = '3.3.7'
Modal.VERSION = '3.4.0'

Modal.TRANSITION_DURATION = 300
Modal.BACKDROP_TRANSITION_DURATION = 150
Expand All @@ -50,7 +51,7 @@

Modal.prototype.show = function (_relatedTarget) {
var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })

this.$element.trigger(e)

Expand Down Expand Up @@ -141,8 +142,8 @@
.off('focusin.bs.modal') // guard against infinite focus loop
.on('focusin.bs.modal', $.proxy(function (e) {
if (document !== e.target &&
this.$element[0] !== e.target &&
!this.$element.has(e.target).length) {
this.$element[0] !== e.target &&
!this.$element.has(e.target).length) {
this.$element.trigger('focus')
}
}, this))
Expand Down Expand Up @@ -244,7 +245,7 @@
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight

this.$element.css({
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
})
}
Expand All @@ -269,11 +270,26 @@
Modal.prototype.setScrollbar = function () {
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
this.originalBodyPad = document.body.style.paddingRight || ''
if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
var scrollbarWidth = this.scrollbarWidth
if (this.bodyIsOverflowing) {
this.$body.css('padding-right', bodyPad + scrollbarWidth)
$(this.fixedContent).each(function (index, element) {
var actualPadding = element.style.paddingRight
var calculatedPadding = $(element).css('padding-right')
$(element)
.data('padding-right', actualPadding)
.css('padding-right', parseFloat(calculatedPadding) + scrollbarWidth + 'px')
})
}
}

Modal.prototype.resetScrollbar = function () {
this.$body.css('padding-right', this.originalBodyPad)
$(this.fixedContent).each(function (index, element) {
var padding = $(element).data('padding-right')
$(element).removeData('padding-right')
element.style.paddingRight = padding ? padding : ''
})
}

Modal.prototype.measureScrollbar = function () { // thx walsh
Expand All @@ -291,8 +307,8 @@

function Plugin(option, _relatedTarget) {
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.modal')
var $this = $(this)
var data = $this.data('bs.modal')
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)

if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
Expand All @@ -303,7 +319,7 @@

var old = $.fn.modal

$.fn.modal = Plugin
$.fn.modal = Plugin
$.fn.modal.Constructor = Modal


Expand All @@ -320,10 +336,13 @@
// ==============

$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
var $this = $(this)
var href = $this.attr('href')
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
var $this = $(this)
var href = $this.attr('href')
var target = $this.attr('data-target') ||
(href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7

var $target = $(document).find(target)
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())

if ($this.is('a')) e.preventDefault()

Expand Down
12 changes: 6 additions & 6 deletions geonode/static/lib/js/popover.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: popover.js v3.3.7
* http://getbootstrap.com/javascript/#popovers
* Bootstrap: popover.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#popovers
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -19,7 +19,7 @@

if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')

Popover.VERSION = '3.3.7'
Popover.VERSION = '3.4.0'

Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
placement: 'right',
Expand Down Expand Up @@ -67,8 +67,8 @@

return $e.attr('data-content')
|| (typeof o.content == 'function' ?
o.content.call($e[0]) :
o.content)
o.content.call($e[0]) :
o.content)
}

Popover.prototype.arrow = function () {
Expand Down
2 changes: 1 addition & 1 deletion geonode/static/lib/js/require.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions geonode/static/lib/js/scrollspy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: scrollspy.js v3.3.7
* http://getbootstrap.com/javascript/#scrollspy
* Bootstrap: scrollspy.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -28,7 +28,7 @@
this.process()
}

ScrollSpy.VERSION = '3.3.7'
ScrollSpy.VERSION = '3.4.0'

ScrollSpy.DEFAULTS = {
offset: 10
Expand Down
20 changes: 10 additions & 10 deletions geonode/static/lib/js/tab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ========================================================================
* Bootstrap: tab.js v3.3.7
* http://getbootstrap.com/javascript/#tabs
* Bootstrap: tab.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#tabs
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -19,7 +19,7 @@
// jscs:enable requireDollarBeforejQueryAssignment
}

Tab.VERSION = '3.3.7'
Tab.VERSION = '3.4.0'

Tab.TRANSITION_DURATION = 150

Expand Down Expand Up @@ -48,7 +48,7 @@

if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return

var $target = $(selector)
var $target = $(document).find(selector)

this.activate($this.closest('li'), $ul)
this.activate($target, $target.parent(), function () {
Expand All @@ -73,15 +73,15 @@
$active
.removeClass('active')
.find('> .dropdown-menu > .active')
.removeClass('active')
.removeClass('active')
.end()
.find('[data-toggle="tab"]')
.attr('aria-expanded', false)
.attr('aria-expanded', false)

element
.addClass('active')
.find('[data-toggle="tab"]')
.attr('aria-expanded', true)
.attr('aria-expanded', true)

if (transition) {
element[0].offsetWidth // reflow for transition
Expand All @@ -93,10 +93,10 @@
if (element.parent('.dropdown-menu').length) {
element
.closest('li.dropdown')
.addClass('active')
.addClass('active')
.end()
.find('[data-toggle="tab"]')
.attr('aria-expanded', true)
.attr('aria-expanded', true)
}

callback && callback()
Expand Down
2 changes: 1 addition & 1 deletion geonode/static/lib/js/text.js
12 changes: 6 additions & 6 deletions geonode/static/lib/js/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* ========================================================================
* Bootstrap: tooltip.js v3.3.7
* http://getbootstrap.com/javascript/#tooltip
* Bootstrap: tooltip.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand All @@ -26,7 +26,7 @@
this.init('tooltip', element, options)
}

Tooltip.VERSION = '3.3.7'
Tooltip.VERSION = '3.4.0'

Tooltip.TRANSITION_DURATION = 150

Expand All @@ -51,7 +51,7 @@
this.type = type
this.$element = $(element)
this.options = this.getOptions(options)
this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
this.$viewport = this.options.viewport && $(document).find($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
this.inState = { click: false, hover: false, focus: false }

if (this.$element[0] instanceof document.constructor && !this.options.selector) {
Expand Down Expand Up @@ -204,7 +204,7 @@
.addClass(placement)
.data('bs.' + this.type, this)

this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
this.options.container ? $tip.appendTo($(document).find(this.options.container)) : $tip.insertAfter(this.$element)
this.$element.trigger('inserted.bs.' + this.type)

var pos = this.getPosition()
Expand Down
10 changes: 5 additions & 5 deletions geonode/static/lib/js/transition.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* ========================================================================
* Bootstrap: transition.js v3.3.7
* http://getbootstrap.com/javascript/#transitions
* Bootstrap: transition.js v3.4.0
* https://getbootstrap.com/docs/3.4/javascript/#transitions
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */


+function ($) {
'use strict';

// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
// CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/)
// ============================================================

function transitionEnd() {
Expand All @@ -32,7 +32,7 @@
return false // explicit for ie8 ( ._.)
}

// http://blog.alexmaccaw.com/css-transitions
// https://blog.alexmaccaw.com/css-transitions
$.fn.emulateTransitionEnd = function (duration) {
var called = false
var $el = this
Expand Down
2 changes: 1 addition & 1 deletion geonode/static/lib/js/underscore.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions geonode/static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Builds static (JS, CSS, IMG) assets for GeoNode 2.0",
"main": "gruntfile.js",
"dependencies": {
"angular": "1.4.0",
"angular": "1.5.0",
"angular-cookies": "1.4.0",
"angular-leaflet-directive": "^0.10.0",
"bootstrap": "3.3.7",
"bootstrap": "3.4.0",
"bootstrap-multiselect": "^0.9.13-1",
"bootstrap-select": "^1.13.10",
"bootstrap-table": "^1.14.2",
Expand Down Expand Up @@ -44,7 +44,7 @@
"raty-js": "^2.9.0",
"requirejs": "^2.3.6",
"requirejs-text": "^2.0.15",
"select2": "^3.5.2-browserify",
"select2": "4.0.8",
"sortable": "^2.0.0",
"timeago": "^1.6.7",
"tree-filter": "^0.0.4",
Expand Down
24 changes: 12 additions & 12 deletions geonode/static/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ angular-leaflet-directive@^0.10.0:
angular "1.x"
leaflet "0.7.x"

angular@1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/angular/-/angular-1.4.0.tgz#ca4b05ce749dd40662c0d066921f2d01a9c82a13"
integrity sha1-yksFznSd1AZiwNBmkh8tAanIKhM=
angular@1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/angular/-/angular-1.5.0.tgz#d96ee97ab6df6cfd0915accbee484d098adb74ec"
integrity sha1-2W7perbfbP0JFazL7khNCYrbdOw=

angular@1.x:
version "1.7.8"
Expand Down Expand Up @@ -304,10 +304,10 @@ bootstrap-typeahead@^2.3.2:
resolved "https://registry.yarnpkg.com/bootstrap-typeahead/-/bootstrap-typeahead-2.3.2.tgz#462c3be72438c13d8ab6703ace8044cf37401236"
integrity sha1-Riw75yQ4wT2KtnA6zoBEzzdAEjY=

bootstrap@3.3.7:
version "3.3.7"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-3.3.7.tgz#5a389394549f23330875a3b150656574f8a9eb71"
integrity sha1-WjiTlFSfIzMIdaOxUGVldPip63E=
bootstrap@3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-3.4.0.tgz#f8d77540dd3062283d2ae7687e21c1e691961640"
integrity sha512-F1yTDO9OHKH0xjl03DsOe8Nu1OWBIeAugGMhy3UTIYDdbbIPesQIhCEbj+HEr6wqlwweGAlP8F3OBC6kEuhFuw==

bootstrap@3.4.x, bootstrap@^3.3:
version "3.4.1"
Expand Down Expand Up @@ -2595,10 +2595,10 @@ safe-regex@^1.1.0:
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==

select2@^3.5.2-browserify:
version "3.5.2-browserify"
resolved "https://registry.yarnpkg.com/select2/-/select2-3.5.2-browserify.tgz#dc4dafda38d67a734e8a97a46f0d3529ae05391d"
integrity sha1-3E2v2jjWenNOipekbw01Ka4FOR0=
select2@4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/select2/-/select2-4.0.8.tgz#3773bec1e5b96620ed98ca5ded53c0da47e7753f"
integrity sha512-H/I2mq71oiEe51S74hdUv4QubH1EJNLEMnjfQucftLa8GiuT5+RKIHwlV/7I/YUqZg0wsYQM946eFG/ntRPF/Q==

select@^1.1.2:
version "1.1.2"
Expand Down