<commit_before>'use strict';

(function(window, document, $, module, exports, require, swal, Qiniu, QiniuConfig){
  let Loader = require('component/common/loader');
  let data = {};
  let _id = null;
  let $element = $;

  $('[name=modifyReplyBtn]').click(function() {
    $element = $(this).parents('.panel');
    _id = $element.data('id');
    $.ajax({
      type: 'GET',
      url: '/api/admin/subscribeReply/' + _id,
      data: 'json',
      contentType: 'application/json',
      success: function(resData) {
        data = resData;
        render();
      }
    })
  });

  function render() {
    $element.html(`
      <div class="panel-heading">
        等待 <input type="number" name='waitMinutes' min="0" class="form-control" autocomplete="off" style="width: 100px; display: inline-block;" value="${data.waitMinutes}"> 分钟后回复
        <button class="btn btn-xs btn-default pull-right" name="cancelBtn">取消</button>
        <button class="btn btn-xs btn-green pull-right mr-sm" name="saveReplyBtn">保存</button>
        <button class="btn btn-xs btn-primary pull-right mr-sm" name="addImageBtn">增加图片</button>
        <button class="btn btn-xs btn-primary pull-right mr-sm" name="addTextBtn">增加文本</button>
      </div><commit_msg>subscribeReply disabled<commit_after>'use strict';

(function(window, document, $, module, exports, require, swal, Qiniu, QiniuConfig){
  let Loader = require('component/common/loader');
  let data = {};
  let _id = null;
  let $element = $;

  $('[name=modifyReplyBtn]').click(function() {
    $element = $(this).parents('.panel');
    _id = $element.data('id');
    $.ajax({
      type: 'GET',
      url: '/api/admin/subscribeReply/' + _id,
      data: 'json',
      contentType: 'application/json',
      success: function(resData) {
        data = resData;
        render();
        $('[name=modifyReplyBtn]').prop('disabled', true);
        $('[name=deleteReplyBtn]').prop('disabled', true);
      }
    });
  });

  function render() {
    $element.html(`
      <div class="panel-heading">
        等待 <input type="number" name='waitMinutes' min="0" class="form-control" autocomplete="off" style="width: 100px; display: inline-block;" value="${data.waitMinutes}"> 分钟后回复
        <button class="btn btn-xs btn-default pull-right" name="cancelBtn">取消</button>
        <button class="btn btn-xs btn-green pull-right mr-sm" name="saveReplyBtn">保存</button>
        <button class="btn btn-xs btn-primary pull-right mr-sm" name="addImageBtn">增加图片</button>
        <button class="btn btn-xs btn-primary pull-right mr-sm" name="addTextBtn">增加文本</button>
      </div>
{'fraction_non_alphanumeric': 0.18087157732356343, 'fraction_numerical': 0.0030852294639413806, 'mean_word_length': 3.441780821917808, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '364971', 'n_tokens_mistral': 863, 'n_tokens_neox': 866, 'n_words': 176}