()
| 21 | } |
| 22 | |
| 23 | afterInsert () { |
| 24 | super.afterInsert() |
| 25 | // hack to get hash links to work. Make this general? |
| 26 | const { |
| 27 | hash |
| 28 | } = document.location |
| 29 | document.location.hash = '' |
| 30 | setTimeout(() => document.location.hash = hash, 10) |
| 31 | |
| 32 | // modal |
| 33 | this.$('#modal-2').find('.background-wrapper').addClass('plain') |
| 34 | |
| 35 | // tooltips |
| 36 | this.$('[data-toggle="tooltip"]').tooltip({ |
| 37 | title: 'Lorem ipsum', |
| 38 | trigger: 'click' |
| 39 | }) |
| 40 | if (hash === '#tooltips') { |
| 41 | setTimeout(() => this.$('[data-toggle="tooltip"]').tooltip('show'), 20) |
| 42 | } |
| 43 | |
| 44 | // popovers |
| 45 | if (hash === '#popovers') { |
| 46 | setTimeout(() => this.$('#popover').popover('show'), 20) |
| 47 | } |
| 48 | |
| 49 | // autocomplete |
| 50 | const tags = [ |
| 51 | 'ActionScript', 'AppleScript', 'Asp', 'BASIC', 'C', 'C++', 'Clojure', 'COBOL', 'ColdFusion', 'Erlang', |
| 52 | 'Fortran', 'Groovy', 'Haskell', 'Java', 'JavaScript', 'Lisp', 'Perl', 'PHP', 'Python', 'Ruby', 'Scala', 'Scheme' |
| 53 | ] |
| 54 | this.$('#tags').autocomplete({ source: tags }) |
| 55 | if (hash === '#autocomplete') { |
| 56 | setTimeout(() => this.$('#tags').autocomplete('search', 't'), 20) |
| 57 | } |
| 58 | |
| 59 | // slider |
| 60 | return this.$('#slider-example').slider() |
| 61 | } |
| 62 | } |
| 63 | DesignElementsView.initClass() |
| 64 | return DesignElementsView |
nothing calls this directly
no outgoing calls
no test coverage detected