<commit_before>// Toolbar Item 'Add Detail' for detail grid

WulinMaster.actions.AddDetail = $.extend({}, WulinMaster.actions.BaseAction, {
  name: 'add_detail',

  handler: function(e) {
    var self = this;
    var masterId = this.target.master.filter_value;

    var $addDetailModal = Ui.headerModal('Attach', {
      ready: function(modal, trigger) {
        self.getModelGrid(masterId, modal.find('.modal-content'));
        modal.find('.modal-content').css('padding', '0');
      }
    }).addClass('attach-modal');

    // var $modalFooter = $('<div/>')
    //   .addClass('modal-footer')
    //   .append($('<div/>').addClass('attach-btn btn right disabled').text('Attach'))
    //   .append($('<div/>').addClass('btn-flat modal-close').text('Cancel'))
    //   .appendTo($addDetailModal);<commit_msg>REFACTOR - Modal footer abstraction<commit_after>// Toolbar Item 'Add Detail' for detail grid

WulinMaster.actions.AddDetail = $.extend({}, WulinMaster.actions.BaseAction, {
  name: 'add_detail',

  handler: function(e) {
    var self = this;
    var masterId = this.target.master.filter_value;

    var $addDetailModal = Ui.headerModal('Attach', {
      ready: function(modal, trigger) {
        self.getModelGrid(masterId, modal.find('.modal-content'));
        modal.find('.modal-content').css('padding', '0');
      }
    });
{'fraction_non_alphanumeric': 0.18175018698578907, 'fraction_numerical': 0.0014958863126402393, 'mean_word_length': 3.4749163879598663, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '524364', 'n_tokens_mistral': 422, 'n_tokens_neox': 413, 'n_words': 76}