"use strict";
(function ($) {
    $.field_actionsms = function (element, options) {
        var defaults = {
            field_name: "",
            value: ""
        }
        var plugin = this;
        
        plugin.settings = {}
        var $element = $(element), 
            element = element;    
        
        plugin.init = function () {
            plugin.settings = $.extend({}, defaults, options);
            $element.find('.table-view').select2();
        };
        plugin.example_function = function () {
        };
        plugin.init();
    }
    
    $.fn.field_actionsms = function (options) {
        
        return this.each(function () {
            
            if (undefined == $(this).data('field_actionsms')) {
                var plugin = new $.field_actionsms(this, options);
                $(this).data('field_actionsms', plugin);
            }
        });
    }
})(jQuery);