Sha256: eabb3b837228ac2a5ecd0765102f124446193067b26537f064e3976688c4ba7c

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

I"˜(function() {
  (function($) {
    window.CMS || (window.CMS = {});
    return window.CMS.files = function() {
      var modal;
      modal = $('.cms-files-modal');
      $('.cms-files-open-modal').on('click', function(e) {
        modal.on('show.bs.modal', function() {
          var iframe, iframeSrc;
          iframe = modal.find('iframe');
          iframeSrc = modal.data('iframe-src');
          if (iframe.attr('src') !== iframeSrc) {
            return iframe.attr('src', iframeSrc);
          }
        });
        modal.modal({
          show: true
        });
        return e.preventDefault();
      });
      modal.on('show.bs.modal', function(e) {
        var height;
        height = $(window).height() - 60;
        return $(e.target).find('.modal-content').css('height', height + "px");
      });
      $(window).on('resize', function() {
        var height;
        height = $(window).height() - 60;
        return modal.find('.modal-content').css('height', height + "px");
      });
      return $(document).on('click', '.cms-uploader-filelist input[type=text]', function() {
        return $(this).select();
      });
    };
  })(jQuery);

}).call(this);
:ET

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
pwb-0.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/oX/OxtK9H1KNOcl8YnN4M-tRiQg3umMvQqH1ozQg6O_3SY.cache
pwb-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/oX/OxtK9H1KNOcl8YnN4M-tRiQg3umMvQqH1ozQg6O_3SY.cache
comfortable_mexican_loveseat-0.1.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.1.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.23 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.22 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.21 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.20 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.19 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.18 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.17 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.16 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache
comfortable_mexican_loveseat-0.0.15 test/dummy/tmp/cache/assets/development/sprockets/v3.0/jvmZacbhJdty5pTGwqJ0pn-vFFPQXOzGmMfCbe50L7w.cache