Sha256: 399051d2dfd563ec436c04b4433374f5b28f9cff36098c7dca0f7d0c5d36382f

Contents?: true

Size: 506 Bytes

Versions: 62

Compression:

Stored size: 506 Bytes

Contents

/**
 * @namespace WORKAREA.styleGuideEmptyLinks
 */
WORKAREA.registerModule('styleGuideEmptyLinks', (function () {
    'use strict';

    var stopAction = function (event) {
            event.preventDefault();
        },

        /**
         * @method
         * @name init
         * @memberof WORKAREA.styleGuideEmptyLinks
         */
        init = function ($scope) {
            $('.style-guide a[href="#"]', $scope).on('click', stopAction);
        };

    return {
        init: init
    };
}()));

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 app/assets/javascripts/workarea/core/modules/style_guide_empty_links.js
workarea-core-3.4.12 app/assets/javascripts/workarea/core/modules/style_guide_empty_links.js