Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/bootstrap.js
/** | /** | ||||
* Import Cash (jQuery replacement) | * Import Cash (jQuery replacement) | ||||
*/ | */ | ||||
import $ from 'cash-dom' | import $ from 'cash-dom' | ||||
window.$ = $ | window.$ = $ | ||||
$.fn.focus = function() { | $.fn.focus = function() { | ||||
if (this.length && this[0].focus) { | if (this.length && this[0].focus) { | ||||
this[0].focus() | this[0].focus() | ||||
} | } | ||||
return this | return this | ||||
} | } | ||||
$.fn.click = function() { | |||||
if (this.length && this[0].click) { | |||||
this[0].click() | |||||
} | |||||
return this | |||||
} | |||||
/** | /** | ||||
* Load Vue, VueRouter and global components | * Load Vue, VueRouter and global components | ||||
*/ | */ | ||||
import { Tooltip } from 'bootstrap' | import { Tooltip } from 'bootstrap' | ||||
import FontAwesomeIcon from './fontawesome' | import FontAwesomeIcon from './fontawesome' | ||||
import Vue from 'vue' | import Vue from 'vue' | ||||
import VueRouter from 'vue-router' | import VueRouter from 'vue-router' | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |