Sha256: dd983d53092665651cffec50e369516c458dd7fc702914ca1add8934a3443b40
Contents?: true
Size: 804 Bytes
Versions: 10
Compression:
Stored size: 804 Bytes
Contents
//= require jquery //= require bootstrap-sprockets //= require ../../tb_core //= require_self //= require_tree . spud = {admin:{}}; $(document).ready(function() { spud.admin.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
10 entries across 10 versions & 1 rubygems