o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371502881.226729: @value"º!{I" class:ETI"ProcessedAsset;FI"logical_path;TI"bootstrapSwitch.js;FI" pathname;TI"M/Users/maxwell/Desktop/flms/vendor/assets/javascripts/bootstrapSwitch.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-06-17T11:00:15-07:00;TI" length;Ti£I" digest;TI"%bc80b24dca9cd9462784d145af565eb3;FI" source;TI"£/* ============================================================ * bootstrapSwitch v1.2 by Larentis Mattia @spiritualGuru * http://www.larentis.eu/switch/ * ============================================================ * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * ============================================================ */ !function ($) { "use strict"; $.fn['bootstrapSwitch'] = function (method) { var methods = { init: function () { return this.each(function () { var $element = $(this) , $div , $switchLeft , $switchRight , $label , myClasses = "" , classes = $element.attr('class') , color , moving , onLabel = "ON" , offLabel = "OFF"; $.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) { if (classes.indexOf(el) >= 0) myClasses = el; }); $element.addClass('has-switch'); if ($element.data('on') !== undefined) color = "switch-" + $element.data('on'); if ($element.data('on-label') !== undefined) onLabel = $element.data('on-label'); if ($element.data('off-label') !== undefined) offLabel = $element.data('off-label'); $switchLeft = $('') .addClass("switch-left") .addClass(myClasses) .addClass(color) .html(onLabel); color = ''; if ($element.data('off') !== undefined) color = "switch-" + $element.data('off'); $switchRight = $('') .addClass("switch-right") .addClass(myClasses) .addClass(color) .html(offLabel); $label = $('