Sha256: d41aa200f020dea26993b4bfdce7fe0ac4060522693cfe87e8b3a512899e28cc

Contents?: true

Size: 847 Bytes

Versions: 19

Compression:

Stored size: 847 Bytes

Contents

jQuery.fn.selectify = function() {
    return this.each(function() {
        jQuery(this).hover(
            function() {
                jQuery("h2", this).css("background-position", "0px -18px");
                jQuery("ul", this).fadeIn("fast");
            },
		    function() {
		        jQuery("h2", this).css("background-position", "");
		        jQuery("ul", this).fadeOut("fast");
		    }
        );
    });
};

WYMeditor.SKINS.minimal = {
    //placeholder for the skin JS, if needed

    //init the skin
    //wym is the WYMeditor.editor instance
    init: function(wym) {

        //render following sections as dropdown menus
        jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector)
          .addClass("wym_dropdown")
          .selectify();


    }
};

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
tandem-0.2.5 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
tandem-0.2.4 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
tandem-0.2.3 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
tandem-0.2.2 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
tandem-0.2.1 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
tandem-0.2.0 vendor/assets/javascripts/tandem/wymeditor/skins/minimal/skin.js
spud_core-0.7.5 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.7.4 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.7.2 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.7.1 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.7.0 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.6.4 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.6.2 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.5.6 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.5.5 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.5.2 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.5.1 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.5.0 app/assets/javascripts/wymeditor/skins/minimal/skin.js
spud_core-0.4.0 app/assets/javascripts/wymeditor/skins/minimal/skin.js