Sha256: a51a2da3b5614fd72b5cfdea9890b28afdcf252483cb8d1002e4e7b7ac40ef57
Contents?: true
Size: 654 Bytes
Versions: 18
Compression:
Stored size: 654 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) //var width = window.innerWidth; //modal.css('width', width) modal.modal('show', content.html(), title, source_id); return false }) }, })
Version data entries
18 entries across 18 versions & 1 rubygems