Sha256: cf498b57da2153bc799ddec032df5919417a2b6d1e6b16f4b754cc3d436e04cb
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
var modalMedia = { $el: $("#modal-media"), result: {}, options: {}, open: function(options) { options = options || {}; this.options = options; this.$el.modal('show'); }, close: function() { if ($.isFunction(this.options.beforeClose)) { this.options.beforeClose(this.result); } this.$el.modal('hide'); if ($.isFunction(this.options.afterClose)) { this.options.beforeClose(this.result); } } };
Version data entries
4 entries across 4 versions & 1 rubygems