Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js |
— | — | @@ -1912,6 +1912,13 @@ |
1913 | 1913 | ); |
1914 | 1914 | |
1915 | 1915 | return $block; |
| 1916 | + }, |
| 1917 | + |
| 1918 | + /** |
| 1919 | + * Perform adjustments after build |
| 1920 | + */ |
| 1921 | + afterBuild: function() { |
| 1922 | + $( '.articleFeedbackv5-tooltip-trigger' ).remove(); |
1916 | 1923 | } |
1917 | 1924 | |
1918 | 1925 | // }}} |
— | — | @@ -2517,6 +2524,12 @@ |
2518 | 2525 | if ( 'afterBuild' in cta ) { |
2519 | 2526 | cta.afterBuild(); |
2520 | 2527 | } |
| 2528 | + |
| 2529 | + // The close element needs to be created anyway, to serve as an anchor. However, it needs |
| 2530 | + // to be hidden when the CTA is not displayed in a dialog |
| 2531 | + if( !$.articleFeedbackv5.inDialog ) { |
| 2532 | + $close.hide(); |
| 2533 | + } |
2521 | 2534 | |
2522 | 2535 | // Reset the panel dimensions |
2523 | 2536 | $.articleFeedbackv5.setDialogDimensions(); |