Update samples and error messages

This commit is contained in:
Rohit Bansal 2016-05-02 14:07:23 -07:00
Родитель 825bebeaeb
Коммит 55f041120b
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -14,7 +14,7 @@ VSS.require(["TFS/Dashboards/WidgetHelpers", "TFS/WorkItemTracking/RestClient"],
if (!settings || !settings.queryPath) { if (!settings || !settings.queryPath) {
var $container = $('#query-info-container'); var $container = $('#query-info-container');
$container.empty(); $container.empty();
$container.text("Sorry nothing to show, please configure a query path"); $container.text("Nothing to show. Please select a query.");
return WidgetHelpers.WidgetStatusHelper.Success(); return WidgetHelpers.WidgetStatusHelper.Success();
} }

Просмотреть файл

@ -15,7 +15,7 @@ function validateNameTextInput($nameInput, $errorSingleLineInput){
function validateQueryDropdown($queryDropdown, $errordropdown){ function validateQueryDropdown($queryDropdown, $errordropdown){
if ($queryDropdown.val().indexOf("Fake") > -1){ if ($queryDropdown.val().indexOf("Fake") > -1){
$errordropdown.text("Sorry, you cannot choose the fake query"); $errordropdown.text("Please select a valid query");
$errordropdown.parent().css("visibility", "visible"); $errordropdown.parent().css("visibility", "visible");
return false; return false;
} }
@ -25,7 +25,7 @@ function validateQueryDropdown($queryDropdown, $errordropdown){
function validateCheckbox($errorcheckbox){ function validateCheckbox($errorcheckbox){
if ($("#select-results input:checked").length == 0){ if ($("#select-results input:checked").length == 0){
$errorcheckbox.text("Please select at aleast one option."); $errorcheckbox.text("Please select at least one option.");
$errorcheckbox.parent().css("visibility", "visible"); $errorcheckbox.parent().css("visibility", "visible");
return false; return false;
} }
@ -35,7 +35,7 @@ function validateCheckbox($errorcheckbox){
function validateRadioButtons($errorradio){ function validateRadioButtons($errorradio){
if ($("#display-options input:checked").length == 0){ if ($("#display-options input:checked").length == 0){
$errorradio.text("Please select at aleast one option."); $errorradio.text("Please select at least one option.");
$errorradio.parent().css("visibility", "visible"); $errorradio.parent().css("visibility", "visible");
return false; return false;
} }