diff --git a/widgets/templates/scripts/Widget-for-sample-configuration.js b/widgets/templates/scripts/Widget-for-sample-configuration.js index bad9e13..665a5d9 100644 --- a/widgets/templates/scripts/Widget-for-sample-configuration.js +++ b/widgets/templates/scripts/Widget-for-sample-configuration.js @@ -14,7 +14,7 @@ VSS.require(["TFS/Dashboards/WidgetHelpers", "TFS/WorkItemTracking/RestClient"], if (!settings || !settings.queryPath) { var $container = $('#query-info-container'); $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(); } diff --git a/widgets/templates/scripts/sample-configuration.js b/widgets/templates/scripts/sample-configuration.js index 1c058d0..2553619 100644 --- a/widgets/templates/scripts/sample-configuration.js +++ b/widgets/templates/scripts/sample-configuration.js @@ -15,7 +15,7 @@ function validateNameTextInput($nameInput, $errorSingleLineInput){ function validateQueryDropdown($queryDropdown, $errordropdown){ 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"); return false; } @@ -25,7 +25,7 @@ function validateQueryDropdown($queryDropdown, $errordropdown){ function validateCheckbox($errorcheckbox){ 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"); return false; } @@ -35,7 +35,7 @@ function validateCheckbox($errorcheckbox){ function validateRadioButtons($errorradio){ 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"); return false; }