Created
October 30, 2017 14:01
-
-
Save mFingers/9a5ef125f3efb04aab703f7210bb2376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/assets/javascripts/helpers/pubsub_helper.js.coffee b/app/assets/javascripts/helpers/pubsub_helper.js.coffee | |
index c3f8482a5a..97529051b8 100644 | |
--- a/app/assets/javascripts/helpers/pubsub_helper.js.coffee | |
+++ b/app/assets/javascripts/helpers/pubsub_helper.js.coffee | |
@@ -82,7 +82,8 @@ class App.Helpers.PubSub extends Backbone.View | |
$session_row.remove() | |
updateTestCount: (method) -> | |
- page_title = $('title').text() | |
+ $title = $('head title') | |
+ page_title = $title.text() | |
test_count_string = '' | |
if page_title.indexOf('(') > -1 | |
@@ -96,7 +97,7 @@ class App.Helpers.PubSub extends Backbone.View | |
page_title = if page_title.split(')')[1] then page_title.split(')')[1] else page_title | |
- return $('title').text("#{test_count_string}#{page_title}") | |
+ return $title.text("#{test_count_string}#{page_title}") | |
updateTableView: () -> | |
if $('#dsh-available_tests table .available').length > 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment