Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
tooltip for planet
Browse files Browse the repository at this point in the history
  • Loading branch information
aquibbaig committed May 29, 2019
1 parent bda4825 commit 1566860
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 3 additions & 4 deletions site/app/Resources/views/planet/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@
</div>
{% endblock %}

{% block additional_js %}
<script src="{{ asset('build/planet.js') }}"></script>
{% endblock %}
{% block pagejs %}
// bootstrap tooltips need to be explicitly initialized
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
{% endblock %}
7 changes: 7 additions & 0 deletions site/web/assets/js/planet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// bootstrap tooltips need to be explicitly initialized
import 'bootstrap'
import $ from 'jquery'

$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
2 changes: 2 additions & 0 deletions site/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Encore
.addEntry('project_settings', './web/assets/js/classification.js')
.addEntry('project_new', ['./web/assets/js/bootstrap-select.js',
'./web/assets/js/project_new.js'])
.addEntry('planet', './web/assets/js/planet.js')
.addEntry('organisation', './web/assets/js/organisation.js')


// will require an extra script tag for runtime.js
Expand Down

0 comments on commit 1566860

Please sign in to comment.