From c934866063f1d3f0cb70d894ecc8ccd2a55094b6 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 4 Aug 2015 17:42:53 -0400 Subject: [PATCH] Two small code improvements --- airtime_mvc/application/models/Preference.php | 2 +- airtime_mvc/public/js/airtime/common/common.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 6143058ba..2ccf68d05 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -203,7 +203,7 @@ class Application_Model_Preference if (strlen($title) > 0) $title .= " - "; - return $title."Airtime"; + return $title.PRODUCT_NAME; } public static function SetHeadTitle($title, $view=null) diff --git a/airtime_mvc/public/js/airtime/common/common.js b/airtime_mvc/public/js/airtime/common/common.js index 46c016bf3..587c1f163 100644 --- a/airtime_mvc/public/js/airtime/common/common.js +++ b/airtime_mvc/public/js/airtime/common/common.js @@ -164,7 +164,7 @@ function removeSuccessMsg() { function getUsabilityHint() { var pathname = window.location.pathname; - $.getJSON("/api/get-usability-hint", {"format": "json", "userPath": pathname}, function(json) { + $.getJSON(baseUrl + "api/get-usability-hint", {"format": "json", "userPath": pathname}, function(json) { var $hint_div = $('.usability_hint'); var current_hint = $hint_div.html(); if (json === "") {