/WATCH LIVE | South African Airways briefs media as strike enters fifth day

WATCH LIVE | South African Airways briefs media as strike enters fifth day

“, value: item.Ticker };
}));

$(“.autoCompleteTickerItem”).click(function() {
$(“#txtSymbol”).val($(this).children(“.tickerLabel”).text());
});
}
});
}
});
});

function initSnapshotControl() {
$(“#txtSymbol”)
.focus(function() {
if (this.value == “Please enter the exact company Ticker”)
this.value = “”;
})
.blur(function() {
if (this.value == “”)
this.value = “Please enter the exact company Ticker”;
})
.keypress(function(e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
$(“#btnChangeSymbol”).click();
return false;
} else
return true;
});

$(“#btnChangeSymbol”).click(function() {
var searchString = $(“#txtSymbol”).attr(“data-friendlyname”);
searchForTickerWithSymbol(searchString);
});
}

function searchForTickerWithSymbol(searchString) {
if (typeof searchString != “undefined” && searchString != “”) {
if (companySearchForTickerWithSymbol && typeof(companySearchForTickerWithSymbol) == “function”)
companySearchForTickerWithSymbol(searchString);
else
companySearch_TickerSearchError(“Please enter a valid ticker.”);
} else
companySearch_TickerSearchError(“Please enter a valid ticker.”);
}

function hideSearchError() {
if (companySearchErrorTagName && companySearchErrorTagName != null && $(“#” + companySearchErrorTagName).is(“:visible”)) {
$(“#” + companySearchErrorTagName).hide().parent().animate({
height: “-=10”
});
}
}

function companySearch_TickerSearchError(errorMessage) {
if (busyLoadingCompanySnapshotPage) return;

if (companySearchErrorTagName && companySearchErrorTagName != null && $(“#” + companySearchErrorTagName)) {
$(“#” + companySearchErrorTagName)
.html(errorMessage)
.show()
.parent().animate({
height: “+=10”
});

setTimeout(hideSearchError, 5000);
}
}

initSnapshotControl();