<commit_before>/*jslint indent: 2 */
/*global $: false, document: false, togglbutton: false*/

'use strict';

togglbutton.render('.timeline-task-popup:not(.toggl)', {observe: true}, function (element) {
  var titleElement = $('[data-hook=input-name]', element),
    projectElement = $('[name=project_name]', element),
    container = $('[data-hook=row-actions]', element),
    link;

  if (titleElement === null || container === null) {
    return;
  }

  link = togglbutton.createTimerLink({
    className: 'teamweek-new',
    buttonType: 'minimal',
    description: titleElement.value,
    projectName: projectElement.value || null
  });

  container.appendChild(link);
});
<commit_msg>Update selector for tw closes #1046<commit_after>/*jslint indent: 2 */
/*global $: false, document: false, togglbutton: false*/

'use strict';

togglbutton.render('.timeline-form:not(.toggl)', {observe: true}, function (element) {
  var titleElement = $('[data-hook=input-name]', element),
    projectElement = $('[name=project_name]', element),
    container = $('[data-hook=row-actions]', element),
    link;

  if (titleElement === null || container === null) {
    return;
  }

  link = togglbutton.createTimerLink({
    className: 'teamweek-new',
    buttonType: 'minimal',
    description: titleElement.value,
    projectName: projectElement.value || null
  });

  container.appendChild(link);
});

{'fraction_non_alphanumeric': 0.17385057471264367, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 4.378378378378378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6321846', 'n_tokens_mistral': 453, 'n_tokens_neox': 435, 'n_words': 95}