Commit 95581d0d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

external js file references removed

parent 11edbc37
......@@ -10,15 +10,6 @@
<h:head>
<script type="text/javascript" src="https://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/rowreorder/1.2.3/js/dataTables.rowReorder.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.2/js/dataTables.buttons.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css"/>
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/rowreorder/1.2.3/css/rowReorder.dataTables.min.css"/>
......@@ -33,21 +24,17 @@
<script type="text/javascript">
//<![CDATA[
var btn = $.fn.button.noConflict(); // reverts $.fn.button to jqueryui btn
$.fn.btn = btn; // assigns bootstrap button functionality to $.fn.btn
/**
* Safari has some issue with the jquery css or the way JSF presents the CSS resources.
* This is a hack that fixes this issue by forcing the icon sprite png to be loaded once the document is ready.
*/
$('document').ready(function() {
function initMap(){
/**
* Safari has some issue with the jquery css or the way JSF presents the CSS resources.
* This is a hack that fixes this issue by forcing the icon sprite png to be loaded once the document is ready.
*/
var style = document.createElement("style");
var styleText = document.createTextNode(".ui-icon { background-image: url(/minerva/javax.faces.resource/images/ui-icons_616161_256x240.png.xhtml?ln=primefaces-aristo&m_version=Unknown) !important; }");
style.appendChild(styleText);
document.head.appendChild(style);
});
function initMap(){
BrowserCheck();
var element = document.getElementById('minervaAppDiv');
return minerva.create({
......@@ -68,7 +55,6 @@
<h:outputStylesheet library="css" name="style.css"/>
<h:outputStylesheet library="css" name="minerva.css" />
<h:outputStylesheet library="css" name="pileup.css"/>
<h:outputScript library="primefaces" name="jquery/jquery.js" target="head" />
<h:outputStylesheet library="css" name="bootstrap.min.css"/>
<div id="minervaAppDiv" style="height: 100%;width: 100%;margin: 0;"></div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment