Fix JS for setup

This commit is contained in:
James Brooks
2017-07-25 14:38:02 -04:00
parent 19c4bd6799
commit 861f0351c5

View File

@@ -1,4 +1,4 @@
(function() {
$(function() {
// Ajax Setup
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
var token;
@@ -100,14 +100,18 @@
$(".wrapper").toggleClass("toggled");
});
$('.color-code').minicolors({
control: 'hue',
defaultValue: $(this).val() || '',
inline: false,
letterCase: 'lowercase',
opacity: false,
position: 'bottom left',
theme: 'bootstrap'
$('.color-code').each(function() {
var $this = $(this);
$this.minicolors({
control: 'hue',
defaultValue: $this.val() || '',
inline: false,
letterCase: 'lowercase',
opacity: false,
position: 'bottom left',
theme: 'bootstrap'
});
});
$('[data-toggle="tooltip"]').tooltip();
@@ -403,4 +407,4 @@
if (_.isFunction(cancelCallback)) cancelCallback();
});
}
}());
});