Sha256: b257988a1cc7d8e51636e2b7025e369df7e2c77c5973df3bc7e00aa1d7a94b10

Contents?: true

Size: 1.43 KB

Versions: 7

Compression:

Stored size: 1.43 KB

Contents

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require ish_manager/jquery-3.2.1.min
//= require ish_manager/bootstrap.min
//= require ish_manager/jquery.iframe-transport
//= require ish_manager/jquery.ui.widget
//= require ish_manager/jquery.fileupload
//

$(function () {
  $('#fileupload').fileupload({
    dataType: 'json',
    done: function (e, data) {
      var photos = $('#photos');
      var tempUrl = data.result[0].thumbnail_url;
      $('<img/>').attr('src', tempUrl).appendTo(photos);
    }
  });  
});

$(document).ready(function () {
  $('*[data-confirm]').click(function(){
    return confirm($(this).attr('data-confirm'));
  });
  
  if ($(".tinymce").length > 0) {
    tinymce.init({
      mode: "specific_textareas",
      editor_selector: 'tinymce',
      plugins: 'link'
    });
  }
  
  $('select').material_select();

});
 

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ish_manager-0.1.8.60 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.59 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.58 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.57 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.56 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.55 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.54 app/assets/javascripts/ish_manager/application.js