Skip to content

Commit 8d3ca97

Browse files
committed
fix some errors
1 parent 386fa3f commit 8d3ca97

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

dev/full/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js"></script>
2626
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.1.4/js/ion.rangeSlider.js"></script>
2727
<!-- Vanilla libs -->
28-
<script type="text/javascript" src="https://rawgit.com/monterail/vue-multiselect/2.0/lib/vue-multiselect.min.js"></script>
28+
<script type="text/javascript" src="https://unpkg.com/vue-multiselect@2.0.0-beta.13"></script>
2929
<script type="text/javascript" src="https://rawgit.com/nosir/cleave.js/master/dist/cleave.min.js"></script>
3030
<script type="text/javascript" src="https://nosir.github.io/cleave.js/lib/cleave-phone.i18n.js"></script>
3131
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/9.0.0/nouislider.js"></script>

src/fields/fieldDateTimePicker.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
4949
mounted() {
5050
this.$nextTick(function () {
51-
if ($.fn.datetimepicker) {
51+
if (window.$ && window.$.fn.datetimepicker) {
5252
$(this.$el).datetimepicker(defaults(this.schema.dateTimePickerOptions || {}, {
5353
format: inputFormat
5454
}));
@@ -59,7 +59,7 @@
5959
},
6060
6161
beforeDestroy() {
62-
if ($.fn.datetimepicker){
62+
if (window.$ && window.$.fn.datetimepicker){
6363
$(this.$el).data("DateTimePicker").destroy();
6464
}
6565
}

src/fields/fieldMasked.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
mounted() {
1313
this.$nextTick(function () {
14-
if ($.fn.mask) {
14+
if (window.$ && window.$.fn.mask) {
1515
$(this.$el).unmask().mask(this.schema.mask, this.schema.maskOptions);
1616
} else {
1717
console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!");
@@ -20,7 +20,7 @@
2020
},
2121
2222
beforeDestroy() {
23-
if ($.fn.mask)
23+
if (window.$ && window.$.fn.mask)
2424
$(this.$el).unmask();
2525
}
2626
};

src/fields/fieldRangeSlider.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
watch: {
2020
model: function() {
21-
if ($.fn.ionRangeSlider) {
21+
if (window.$ && window.$.fn.ionRangeSlider) {
2222
let valueFrom, valueTo;
2323
if (isArray(this.value)) {
2424
[ valueFrom, valueTo ] = this.value;
@@ -37,7 +37,7 @@
3737
3838
mounted() {
3939
this.$nextTick(function () {
40-
if ($.fn.ionRangeSlider) {
40+
if (window.$ && window.$.fn.ionRangeSlider) {
4141
let valueFrom, valueTo;
4242
if (isArray(this.value)) {
4343
[ valueFrom, valueTo ] = this.value;

src/fields/fieldSpectrum.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
watch: {
1919
model() {
20-
if ($.fn.spectrum) {
20+
if (window.$ && window.$.fn.spectrum) {
2121
this.picker.spectrum("set", this.value);
2222
}
2323
},
@@ -32,7 +32,7 @@
3232
3333
mounted() {
3434
this.$nextTick(function () {
35-
if ($.fn.spectrum) {
35+
if (window.$ && window.$.fn.spectrum) {
3636
this.picker = $(this.$el).spectrum("destroy").spectrum(defaults(this.schema.colorOptions || {}, {
3737
showInput: true,
3838
showAlpha: true,

0 commit comments

Comments
 (0)