Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfwebui: move inline JavaScript to spiderfoot.opts.js

Brendan Coles44004a8c7f14
diff --git a/dyn/opts.tmpl b/dyn/opts.tmpl
index e40269dd..ad3a8105 100644
--- a/dyn/opts.tmpl
+++ b/dyn/opts.tmpl
@@ -177,11 +177,5 @@
</div>
</div> <!-- /tabbable tabs-left -->
</form>
-<script type='text/javascript'>
- $(function () {
- $('[data-toggle="popover"]').popover()
- $('[data-toggle="popover"]').on("show.bs.popover", function() { $(this).data("bs.popover").tip().css("max-width", "600px") });
- });
-</script>
<br><br>
<%include file="FOOTER.tmpl"/>
diff --git a/static/js/spiderfoot.opts.js b/static/js/spiderfoot.opts.js
index 4df762f5..c7c0aa55 100644
--- a/static/js/spiderfoot.opts.js
+++ b/static/js/spiderfoot.opts.js
@@ -36,3 +36,8 @@ $(document).ready(function() {
$("#btn-opt-export").click(function() { window.location.href=docroot + "/optsexport?pattern=api_key"; return false; });
$("#tab_global").click(function() { switchTab("global"); });
});
+
+$(function () {
+ $('[data-toggle="popover"]').popover()
+ $('[data-toggle="popover"]').on("show.bs.popover", function() { $(this).data("bs.popover").tip().css("max-width", "600px") });
+});