Sha256: 0feb96f5a862ccd4dee2249d3a1427da2a1e7502cd1fdcbedcb0e5b5c880e2ad
Contents?: true
Size: 685 Bytes
Versions: 62
Compression:
Stored size: 685 Bytes
Contents
/** * @namespace WORKAREA.dialogCloseButtons */ WORKAREA.registerModule('dialogCloseButtons', (function () { 'use strict'; var closeDialog = function (event) { var $closestDialog = WORKAREA.dialog.closest(event.currentTarget); if (_.isEmpty($closestDialog)) { return; } event.preventDefault(); $closestDialog.dialog('close'); }, /** * @method * @name init * @memberof WORKAREA.dialogCloseButtons */ init = function ($scope) { $('[data-dialog-close-button]', $scope).on('click', closeDialog); }; return { init: init }; }()));
Version data entries
62 entries across 62 versions & 1 rubygems