Skip to content

Commit

Permalink
18.32 [patch #659]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Rostovtsev authored and Ilia Rostovtsev committed May 5, 2017
1 parent db66fb2 commit b8d9638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions unauthenticated/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2854,7 +2854,7 @@ if ($current_page_full && $current_page_full.indexOf("/sysinfo.cgi") > -1 && __n
function _update_time_() {
var a = $("[data-convertible-timestamp-full]");
a.data("convertible-timestamp-full", (parseInt(a.data("convertible-timestamp-full")) + 1));
a.text(t__wi_p.moment.unix(a.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))
typeof t__wi_p.moment !== "undefined" && a.text(t__wi_p.moment.unix(a.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))
}
$(function() {
setInterval(_update_time_, 1000)
Expand Down Expand Up @@ -2918,11 +2918,12 @@ if ($current_page_full == $_____link_full + "/virtual-server/edit_phpmode.cgi")
$("#hiddendiv_phpinfo table tbody tr").css("border", "1px solid #eee")
}
if (settings_window_replace_timestamps) {
var xMoment = typeof t__wi_p.moment !== "undefined";
$.each($("[data-convertible-timestamp-full]"), function() {
$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))
xMoment && $(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))
});
$.each($("[data-convertible-timestamp-short]"), function() {
$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-short")).format(settings_window_replaced_timestamp_format_short))
xMoment && $(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-short")).format(settings_window_replaced_timestamp_format_short))
})
}
$.each($('a[href*="showpass.cgi?"][onclick]'), function() {
Expand Down
2 changes: 1 addition & 1 deletion unauthenticated/js/content.min.js

Large diffs are not rendered by default.

0 comments on commit b8d9638

Please sign in to comment.