Sha256: 4cd5b2135f42434a11e9fab75e91af27c1c0e178f31f3d6b0429dab0eab1a70b

Contents?: true

Size: 1.47 KB

Versions: 22

Compression:

Stored size: 1.47 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
//= require ish_manager/materialize.js
//

$(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

22 entries across 22 versions & 1 rubygems

Version Path
ish_manager-0.1.8.53 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.52 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.51 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.50 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.49 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.47 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.46 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.45 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.44 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.43 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.41 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.40 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.39 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.38 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.37 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.36 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.35 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.34 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.33 app/assets/javascripts/ish_manager/application.js
ish_manager-0.1.8.32 app/assets/javascripts/ish_manager/application.js