/*jslint indent: 2 */
/*global $: false, document: false, togglbutton: false*/
/*Created by lancelothk on 2/16/14.*/

"use strict";

togglbutton.render('.td-attributes:not(.toggl)', {observe: true}, function (elem) {
  var link, newDiv,
    taskActive = document.querySelector('.task.active'),
    titleElem = $('.title > span', taskActive),
    projectElem = $('.project-value', taskActive),
    container = elem;//$('.td-attributes', elem);

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

  link = togglbutton.createTimerLink({
    className: 'producteev',
    description: titleElem.title,
    projectName: projectElem.title
  });

  newDiv = document.createElement('div');
  newDiv.innerHTML = '&nbsp;&nbsp;&nbsp;';
  newDiv.appendChild(link);
  container.insertBefore(newDiv, container.firstChild);
});

@@ -251,30 +251,9 @@
 e = 
-document.querySelector
+$
 ('.t
@@ -367,98 +367,26 @@
 ive)
-,%0A    container = elem;//$('.td-attributes', elem);%0A%0A  if (titleElem === null %7C%7C container
+;%0A%0A  if (titleElem
  ===
@@ -670,25 +670,20 @@
 ink);%0A  
-container
+elem
 .insertB
@@ -700,17 +700,12 @@
 iv, 
-container
+elem
 .fir

Remove unused container