Sha256: 3fa0d4c6196aeb39ce4375e738d39837a7def36068129d713cb3f8caaf57325a
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
//= require rails-ujs //= require rails-validator //= require jquery //= require bootstrap-sprockets //= require_self //= require_tree . window.tb = {}; // for legacy code window.spud = { admin: window.tb }; document.addEventListener('DOMContentLoaded', function() { if (typeof tinymce != "undefined") { tb.editor.init(); } $("#modal_window .modal-footer .form-submit").bind('click', function() { $("#modal_window .modal-body form").submit(); }); $("#modal_window ").on('hidden', function(){ $(this).find('.modal-footer-additional').remove(); $(this).find('.modal-footer-default').show(); $(this).removeData('modal'); }); $('body').on('click', 'a.ajax', function() { var url = this.href; var title = this.title; var dialog = $("#modal_window"); $("#modal_window .modal-title").text(title); dialog.modal({ remote: url +".js", show:true }); return false; }); });
Version data entries
3 entries across 3 versions & 1 rubygems