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

Version Path
tb_core-1.4.3.1 app/assets/javascripts/admin/core/application.js
tb_core-1.4.3 app/assets/javascripts/admin/core/application.js
tb_core-1.4.2 app/assets/javascripts/admin/core/application.js
tb_core-1.4.1 app/assets/javascripts/admin/core/application.js
tb_core-1.4.0.1 app/assets/javascripts/admin/core/application.js
tb_core-1.4.beta2 app/assets/javascripts/admin/core/application.js
tb_core-1.4.beta1 app/assets/javascripts/admin/core/application.js
tb_core-1.3.10 app/assets/javascripts/admin/core/application.js
tb_core-1.3.9 app/assets/javascripts/admin/core/application.js
tb_core-1.3.7 app/assets/javascripts/admin/core/application.js