You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
560 B

/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2016 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
$.components.register("switchery", {
mode: "init",
defaults: {
color: $.colors("primary", 600)
},
init: function(context) {
if (typeof Switchery === "undefined") return;
var defaults = $.components.getDefaults("switchery");
$('[data-plugin="switchery"]', context).each(function() {
var options = $.extend({}, defaults, $(this).data());
new Switchery(this, options);
});
}
});