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

Version Path
rbbt-rest-1.8.92 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.91 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.90 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.89 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.88 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.87 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.86 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.85 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.84 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.83 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.82 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.81 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.80 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.79 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.78 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.77 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.76 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.75 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.74 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.8.73 share/views/public/js/rbbt/reveal.js