Skip to content

Commit 4bfa91c

Browse files
committed
hide tooltip
1 parent befd0e2 commit 4bfa91c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/javascript/binary/base/page.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ Header.prototype = {
747747
$(".login-id-list").html(loginid_select);
748748
},
749749
register_dynamic_links: function() {
750-
$('#logo').attr('href', page.url.url_for(this.client.is_logged_in ? 'trading' : ''));
750+
$('#logo').attr('href', page.url.url_for(this.client.is_logged_in ? japanese_client() ? 'jptrading' : 'trading' : ''));
751751
this.menu.register_dynamic_links();
752752
},
753753
start_clock_ws: function() {
@@ -778,9 +778,8 @@ Header.prototype = {
778778
that.server_time_at_response = ((start_timestamp * 1000) + (that.client_time_at_response - pass));
779779
var update_time = function() {
780780
window.time = moment(that.server_time_at_response + moment().valueOf() - that.client_time_at_response).utc();
781-
var curr = localStorage.getItem('client.currencies');
782781
var timeStr = window.time.format("YYYY-MM-DD HH:mm") + ' GMT';
783-
if(curr === 'JPY'){
782+
if(japanese_client()){
784783
clock.html(toJapanTimeIfNeeded(timeStr, 1, '', 1));
785784
} else {
786785
clock.html(timeStr);

src/javascript/binary/base/utility.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ function attach_tabs(element) {
217217
}
218218

219219
function showLocalTimeOnHover(s) {
220+
if (japanese_client()) return;
220221
$(s || '.date').each(function(idx, ele) {
221222
var gmtTimeStr = ele.textContent.replace('\n', ' ');
222223
var localTime = moment.utc(gmtTimeStr, 'YYYY-MM-DD HH:mm:ss').local();
@@ -236,7 +237,7 @@ function toJapanTimeIfNeeded(gmtTimeStr, showTimeZone, longcode, hideSeconds){
236237
if (!match) return longcode;
237238
}
238239

239-
var curr = localStorage.getItem('client.currencies'),
240+
var jp_client = japanese_client(),
240241
timeStr = gmtTimeStr,
241242
time;
242243

@@ -252,7 +253,7 @@ function toJapanTimeIfNeeded(gmtTimeStr, showTimeZone, longcode, hideSeconds){
252253
return;
253254
}
254255

255-
timeStr = time.zone(curr === 'JPY' ? '+09:00' : '+00:00').format((hideSeconds ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD HH:mm:ss' ) + (showTimeZone && showTimeZone !== '' ? curr === 'JPY' ? ' zZ' : ' Z' : ''));
256+
timeStr = time.zone(jp_client ? '+09:00' : '+00:00').format((hideSeconds ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD HH:mm:ss' ) + (showTimeZone && showTimeZone !== '' ? jp_client ? ' zZ' : ' Z' : ''));
256257

257258
return (longcode ? longcode.replace(match[0], timeStr) : timeStr);
258259
}

0 commit comments

Comments
 (0)