Sha256: 18cddf288ab1f0389d08037498e1e4be650e9e34920dd0b5df80f0e436784f3c
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
/** * @namespace WORKAREA.toggleElement */ WORKAREA.registerModule('toggleElement', (function () { 'use strict'; /** * @method * @name init * @memberof WORKAREA.toggleElement */ var toggle = function (event) { var $target = $(event.target).data('toggle'); event.preventDefault(); $target.toggleClass('hidden'); }, init = function ($scope) { $('[data-toggle-element]', $scope).on('click', toggle); }; return { init: init }; }()));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-admin-3.5.0.beta.1 | app/assets/javascripts/workarea/admin/modules/toggle_elements.js |