Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -413,8 +413,7 @@ |
414 | 414 | $( '.fbd-response-preview, .fbd-response-submit' ).removeProp( 'disabled' ); |
415 | 415 | $( this ).find( '.fbd-response-form' ).remove(); |
416 | 416 | } |
417 | | - //remove ConcurrencyToolTip if any |
418 | | - $( this ).find( '.fbd-tooltip-overlay-wrap').remove(); |
| 417 | + |
419 | 418 | }); |
420 | 419 | } |
421 | 420 | |
— | — | @@ -540,17 +539,6 @@ |
541 | 540 | wikitext = wikitext.replace( /~{3,5}/g, '' ) + "\n\n~~~~"; // Remove and add signature for |
542 | 541 | parseWikiText( $item, wikitext ); |
543 | 542 | }); |
544 | | - |
545 | | - //run concurrency check |
546 | | - $.concurrency.check( { |
547 | | - ccaction: 'checkout', |
548 | | - resourcetype: 'moodbar-feedback-response', |
549 | | - record: $item.data( 'mbccontinue' ).split( '|' )[1] |
550 | | - }, function( data ){ |
551 | | - if( data && data.concurrency.result == 'failure' ) { //checkout failed, show tooltip |
552 | | - loadConcurrencyToolTip($item); |
553 | | - } |
554 | | - } ); |
555 | 543 | } |
556 | 544 | e.preventDefault(); |
557 | 545 | } |
— | — | @@ -637,38 +625,6 @@ |
638 | 626 | }, 2000); |
639 | 627 | } |
640 | 628 | |
641 | | - /** |
642 | | - * Display tooltip for response concurrency notification |
643 | | - * @param $item Feedback item |
644 | | - */ |
645 | | - function loadConcurrencyToolTip($item) { |
646 | | - var $tooltip = $('<div>').attr('class', 'fbd-tooltip-overlay-wrap') |
647 | | - .append( |
648 | | - $('<div>').attr('class', 'fbd-tooltip-overlay') |
649 | | - .append( |
650 | | - $('<div>').attr('class', 'fbd-tooltip-pointy') |
651 | | - ).append( |
652 | | - $('<div>').attr('class', 'fbd-tooltip-title') |
653 | | - .text( mw.msg( 'response-concurrency-notification' ) ) |
654 | | - .prepend( |
655 | | - $('<span>').attr('class', 'fbd-tooltip-close').text('X') |
656 | | - ) |
657 | | - ) |
658 | | - ); |
659 | | - $item.find( '.fbd-item-response' ).append( $tooltip ); |
660 | | - // Close event, closure remembers object |
661 | | - $( '.fbd-tooltip-close' ) |
662 | | - .live( 'click' , function () { |
663 | | - $tooltip.remove(); |
664 | | - } ); |
665 | | - setTimeout( function() { |
666 | | - $tooltip.fadeOut( function(){ |
667 | | - $tooltip.remove(); |
668 | | - } ); |
669 | | - }, 1500 ); |
670 | | - |
671 | | - } |
672 | | - |
673 | 629 | // On-load stuff |
674 | 630 | $( '.fbd-item-show a' ).live( 'click', showHiddenItem ); |
675 | 631 | $( '.fbd-item-hide a' ).live( 'click', hideItem ); |
Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -189,7 +189,6 @@ |
190 | 190 | 'scripts' => 'ext.moodBar.dashboard/ext.moodBar.dashboard.js', |
191 | 191 | 'dependencies' => array( |
192 | 192 | 'mediawiki.util', |
193 | | - 'jquery.concurrency', |
194 | 193 | 'user.tokens', |
195 | 194 | 'jquery.NobleCount', |
196 | 195 | 'jquery.elastic' |