agilescrumfortrello icon indicating copy to clipboard operation
agilescrumfortrello copied to clipboard

If I change a date or check a checkbox in a list the changes are not shown on the card

Open luckyshot opened this issue 8 years ago • 2 comments

If I change a date or check a checkbox in a list the changes are not shown on the card. If the extension is deaktivated it works fine. I am using chrome version 43.0.2357.124 and also tried the portable version 43.0.2357.130

luckyshot avatar Oct 05 '15 14:10 luckyshot

Problem is that the extension doesn't see a change in the board.

It needs better change detection, previous versions relied on a 5 second timer interval that did a content length count to see if anything had been modified, although it wasn't the best performant way, so I changed it to a mouseup+keyup event attached to

although it is not very reliant.

Anyone got good ideas on how to solve this?

luckyshot avatar Oct 05 '15 15:10 luckyshot

This works for refreshing the cards as soon as the user exits the card detail page.

var regexShortLink      = /c\/([^/]+)\/.+/g;
$('.window-wrapper').bind("DOMSubtreeModified",function(){
    if (window.location.href.match(regexShortLink) && !cardDetailOpen)
    {
        cardId = regexShortLink.exec(window.location.href)[1];
        regexShortLink.lastIndex = 0;
        cardDetailOpen = true;
    } else if (!window.location.href.match(regexShortLink) && cardDetailOpen)
    {
        cardDetailOpen = false;
        _run();
    }
});

JorgeBoscan avatar Dec 06 '15 02:12 JorgeBoscan