Javascript cleanup
Remove unused bootstrap.js, bootstrap-hover-dropdown.min.js, and jquery-1.11.0.js files. Those are uploaded with each publish to our servers, there's no need to do that. Change permissions on file bootstrap.min.js, we do not need executable permissions on it. Upgrade jquery to current 1.11.3 version. Change-Id: Ieaa89e6dcd772d90f0e95ad7d7cf8b6a97737852
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!-- jQuery Version 1.11.0 -->
|
||||
<script type="text/javascript" src="{{pathto('_static/js/jquery-1.11.2.js', 1)}}"></script>
|
||||
<script type="text/javascript" src="{{pathto('_static/js/jquery-1.11.3.js', 1)}}"></script>
|
||||
|
||||
<!-- Bootstrap Core JavaScript -->
|
||||
<script type="text/javascript" src="{{pathto('_static/js/bootstrap.min.js', 1)}}"></script>
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @preserve
|
||||
* Project: Bootstrap Hover Dropdown
|
||||
* Author: Cameron Spear
|
||||
* Version: v2.0.11
|
||||
* Contributors: Mattia Larentis
|
||||
* Dependencies: Bootstrap's Dropdown plugin, jQuery
|
||||
* Description: A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
|
||||
* License: MIT
|
||||
* Homepage: http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/
|
||||
*/
|
||||
!function($,n,e){var o=$();$.fn.dropdownHover=function(e){return"ontouchstart"in document?this:(o=o.add(this.parent()),this.each(function(){function t(e){o.find(":focus").blur(),h.instantlyCloseOthers===!0&&o.removeClass("open"),n.clearTimeout(c),i.addClass("open"),r.trigger(a)}var r=$(this),i=r.parent(),d={delay:500,instantlyCloseOthers:!0},s={delay:$(this).data("delay"),instantlyCloseOthers:$(this).data("close-others")},a="show.bs.dropdown",u="hide.bs.dropdown",h=$.extend(!0,{},d,e,s),c;i.hover(function(n){return i.hasClass("open")||r.is(n.target)?void t(n):!0},function(){c=n.setTimeout(function(){i.removeClass("open"),r.trigger(u)},h.delay)}),r.hover(function(n){return i.hasClass("open")||i.is(n.target)?void t(n):!0}),i.find(".dropdown-submenu").each(function(){var e=$(this),o;e.hover(function(){n.clearTimeout(o),e.children(".dropdown-menu").show(),e.siblings().children(".dropdown-menu").hide()},function(){var t=e.children(".dropdown-menu");o=n.setTimeout(function(){t.hide()},h.delay)})})}))},$(document).ready(function(){$('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this);
|
||||
File diff suppressed because it is too large
Load Diff
0
openstackdocstheme/theme/openstackdocs/static/js/bootstrap.min.js
vendored
Executable file → Normal file
0
openstackdocstheme/theme/openstackdocs/static/js/bootstrap.min.js
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
openstackdocstheme/theme/openstackdocs/static/js/jquery-1.11.3.js
vendored
Normal file
5
openstackdocstheme/theme/openstackdocs/static/js/jquery-1.11.3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user