SHARE
TWEET

Untitled

a guest May 23rd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     'use strict';
  3.  
  4.     var threads = $("#threads").find($(".threadstatus"));
  5.  
  6.     threads.each(function(){
  7.         $(this).append(`<span class="check_thread" style="border: 1px solid black; background-color: lightgray; font-size: 10px;">Check</span>`);
  8.     });
  9. })();
  10.  
  11. $(".check_thread").click(function(){
  12.     var title = $(this).parent().parent().find($(".title"));
  13.     title.toggleClass("checked");
  14.     checkThread(title);
  15. });
  16. function checkThread(title){
  17.     var dblEvent = new MouseEvent('dblclick', {
  18.         'view': window,
  19.         'bubbles': true,
  20.         'cancelable': true
  21.     });
  22.     title.html("[⁦✔️⁩] -- " + title.text());
  23.     document.getElementsByClassName("checked")[0].dispatchEvent(dblEvent);
  24.     title.toggleClass("checked");
  25.     //Add function that will execute 'Enter' keypress
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top