Sha256: b1ad2add7bbd2eb7eeff3c162e1924e67a6345cfc25a005e71d7192cf348e707

Contents?: true

Size: 1.85 KB

Versions: 42

Compression:

Stored size: 1.85 KB

Contents

/*
 * Better Select Multiple Compatibility Plugin - jQuery Plugin
 *
 * Copyright (c) 2010 by Victor Berchet - http://www.github.com/vicb
 *
 * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 *
 * version: v1.0.0 - 2010-09-05
 */
(function($) {
  $.bsmSelect.plugins.compatibility = function()
  {
    if (!(this instanceof arguments.callee)) {
      return new arguments.callee();
    }
  }

  $.extend($.bsmSelect.plugins.compatibility.prototype, {
    init: function(bsm) {

      var o = bsm.options;

      if (typeof o.animate != 'undefined')
      {
        if (o.animate === true) {
          o.showEffect = $.bsmSelect.effects.verticalListAdd;
          o.hideEffect = $.bsmSelect.effects.verticalListRemove;
        } else if ($.isFunction(o.animate.add)) {
          o.showEffect = o.animate.add;
        } else if (typeof(o.animate.add) == 'string' && $.isFunction($.bsmSelect.effects[o.animate.add])) {
          o.showEffect = $.bsmSelect.effects[o.animate.add];
        } else {
          o.showEffect = $.bsmSelect.effects.show;
        }        

        if ($.isFunction(o.animate.drop)) {
          o.hideEffect = o.animate.drop;
        } else if (typeof(o.animate.drop) == 'string' && $.isFunction($.bsmSelect.effects[o.animate.drop])) {
          o.hideEffect = $.bsmSelect.effects[o.animate.drop];
        } else {
          o.hideEffect = $.bsmSelect.effects.remove;
        }
      }

      if (typeof o.highlight != 'undefined')
      {
        if (o.highlight === true) {
          o.highlightEffect = $.bsmSelect.effects.highlight;
        } else if ($.isFunction(o.highlight)) {
          o.highlightEffect = o.highlight;
        } else if (typeof(o.highlight) == 'string' && $.isFunction($.bsmSelect.effects[o.highlight])) {
          o.highlightEffect = $.bsmSelect.effects[o.highlight];
        }
      }

    }

  });
})(jQuery);

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-1.0.0 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.39 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.38 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.37 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.35 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.34 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.33 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.32 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.31 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.30 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.29 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.28 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.27 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.26 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.26.pre1 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.25 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.24 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.23 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js
spiderfw-0.6.22 apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.compatibility.js