Skip to content

Commit

Permalink
fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Jan 30, 2017
1 parent 386fa3f commit 8d3ca97
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dev/full/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.1.4/js/ion.rangeSlider.js"></script>
<!-- Vanilla libs -->
<script type="text/javascript" src="https://rawgit.com/monterail/vue-multiselect/2.0/lib/vue-multiselect.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/vue-multiselect@2.0.0-beta.13"></script>
<script type="text/javascript" src="https://rawgit.com/nosir/cleave.js/master/dist/cleave.min.js"></script>
<script type="text/javascript" src="https://nosir.github.io/cleave.js/lib/cleave-phone.i18n.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/9.0.0/nouislider.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/fields/fieldDateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
mounted() {
this.$nextTick(function () {
if ($.fn.datetimepicker) {
if (window.$ && window.$.fn.datetimepicker) {
$(this.$el).datetimepicker(defaults(this.schema.dateTimePickerOptions || {}, {
format: inputFormat
}));
Expand All @@ -59,7 +59,7 @@
},
beforeDestroy() {
if ($.fn.datetimepicker){
if (window.$ && window.$.fn.datetimepicker){
$(this.$el).data("DateTimePicker").destroy();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/fields/fieldMasked.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
mounted() {
this.$nextTick(function () {
if ($.fn.mask) {
if (window.$ && window.$.fn.mask) {
$(this.$el).unmask().mask(this.schema.mask, this.schema.maskOptions);
} else {
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!");
Expand All @@ -20,7 +20,7 @@
},
beforeDestroy() {
if ($.fn.mask)
if (window.$ && window.$.fn.mask)
$(this.$el).unmask();
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/fields/fieldRangeSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
watch: {
model: function() {
if ($.fn.ionRangeSlider) {
if (window.$ && window.$.fn.ionRangeSlider) {
let valueFrom, valueTo;
if (isArray(this.value)) {
[ valueFrom, valueTo ] = this.value;
Expand All @@ -37,7 +37,7 @@
mounted() {
this.$nextTick(function () {
if ($.fn.ionRangeSlider) {
if (window.$ && window.$.fn.ionRangeSlider) {
let valueFrom, valueTo;
if (isArray(this.value)) {
[ valueFrom, valueTo ] = this.value;
Expand Down
4 changes: 2 additions & 2 deletions src/fields/fieldSpectrum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
watch: {
model() {
if ($.fn.spectrum) {
if (window.$ && window.$.fn.spectrum) {
this.picker.spectrum("set", this.value);
}
},
Expand All @@ -32,7 +32,7 @@
mounted() {
this.$nextTick(function () {
if ($.fn.spectrum) {
if (window.$ && window.$.fn.spectrum) {
this.picker = $(this.$el).spectrum("destroy").spectrum(defaults(this.schema.colorOptions || {}, {
showInput: true,
showAlpha: true,
Expand Down

0 comments on commit 8d3ca97

Please sign in to comment.