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

Version Path
rails_modular_admin-0.2.4 app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js
rails_modular_admin-0.2.3 app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js
rails_modular_admin-0.2.2 app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js
rails_modular_admin-0.2.0 app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js