Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added some condition so that the chances of occuring this issue again is less
  • Loading branch information
mohantechnology committed Apr 4, 2022
1 parent 4493d80 commit ca03e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dashboard/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ function matchColorField(params, data) {
$(document).ready(function() {
document.webL10n.ready(function() {
var refreshIntervalId = setInterval(function() {
if (document.webL10n.getReadyState() == "complete") {
var testString = document.webL10n.get("searchUser");
if (document.webL10n.getReadyState() == "complete" && testString && testString.search(/^{{.*}}$/) <0) {
clearInterval(refreshIntervalId);
if ($("#users-select2").length > 0) {
$("#users-select2").select2({
Expand Down
3 changes: 2 additions & 1 deletion dashboard/public/js/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ function sugarizerTour(currentView, role, mode) {
if ($(window).width() > 992) {
document.webL10n.ready(function() {
var refreshIntervalId = setInterval(function() {
if (document.webL10n.getReadyState() == "complete") {
var testString = document.webL10n.get("TutoPrev");
if (document.webL10n.getReadyState() == "complete" && testString && testString.search(/^{{.*}}$/) <0 ) {
clearInterval(refreshIntervalId);
tutorial.init();
tour.start(true);
Expand Down

0 comments on commit ca03e7c

Please sign in to comment.