Sha256: 2bf5488ba9b0163b571cf14b523d4b2ac58540079c818f976422683332831703
Contents?: true
Size: 630 Bytes
Versions: 124
Compression:
Stored size: 630 Bytes
Contents
$.widget("rbbt.reveal", { options: { modal: $('#modal').first() }, _create: function() { var tool = this; var modal = this.options.modal; tool.element.click(function(){ var modal = $('#modal').first(); var link = $(this); var source_id = link.attr('attr-reveal_id'); var title = link.attr('attr-reveal_title'); var content = $('#' + source_id); var height = window.innerHeight - $('#top_menu').outerHeight(true); modal.css('height',height) rbbt.modal.controller.show(content.html(), title) modal.attr('attr-reveal_source_id', source_id) return false }) }, })
Version data entries
124 entries across 124 versions & 1 rubygems