MDL-57447 block_myoverview: add context for courses view
[moodle.git] / blocks / myoverview / amd / src / paging_bar.js
index cdb9ad2..5f6e6ef 100644 (file)
@@ -43,7 +43,7 @@ define(['jquery', 'core/custom_interaction_events'],
         root.one(CustomEvents.events.activate, SELECTORS.PAGE_LINK, function(e, data) {
             var page = $(e.target).closest(SELECTORS.PAGE_LINK);
             var activePage = root.find(SELECTORS.ACTIVE_PAGE_LINK);
-            var isSamePage = page.is(activatePage);
+            var isSamePage = page.is(activePage);
 
             if (!isSamePage) {
                 root.find(SELECTORS.PAGE_LINK).removeClass('active');