Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- 'use strict';
- var threads = $("#threads").find($(".threadstatus"));
- threads.each(function(){
- $(this).append(`<span class="check_thread" style="border: 1px solid black; background-color: lightgray; font-size: 10px;">Check</span>`);
- });
- })();
- $(".check_thread").click(function(){
- var title = $(this).parent().parent().find($(".title"));
- title.toggleClass("checked");
- checkThread(title);
- });
- function checkThread(title){
- var dblEvent = new MouseEvent('dblclick', {
- 'view': window,
- 'bubbles': true,
- 'cancelable': true
- });
- title.html("[✔️] -- " + title.text());
- document.getElementsByClassName("checked")[0].dispatchEvent(dblEvent);
- title.toggleClass("checked");
- console.log(title);
- setTimeout(function(){
- vB_ThreadTitle_Editor = new vB_AJAX_TitleEdit(title[0]);
- vB_ThreadTitle_Editor.restore();
- }, 1000);
- //Add function that will execute 'Enter' keypress
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement