From e028494ce8cb4c2f1fdba21f165e22b9274c2524 Mon Sep 17 00:00:00 2001 From: Ashok Fernandez Date: Fri, 12 Jun 2015 17:42:05 +0200 Subject: [PATCH] Added better description to no results string --- angular-timezone-selector.js | 5 ++++- build/angular-timezone-selector.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/angular-timezone-selector.js b/angular-timezone-selector.js index 54bf822..6e53bf1 100644 --- a/angular-timezone-selector.js +++ b/angular-timezone-selector.js @@ -62,6 +62,9 @@ angular.module('angular-timezone-selector', []) data.push(zonesForCountry) }) + // Sort by country name + data = _.sortBy(data, 'text') + // Construct a select box with the timezones grouped by country _.forEach(data, function (group) { var $optgroup = $('') @@ -77,7 +80,7 @@ angular.module('angular-timezone-selector', []) width: '300px', include_group_label_in_selected: true, search_contains: true, - no_results_text: 'No results, try searching for the name of your country.' + no_results_text: 'No results, try searching for the name of your country or nearest major city.' }) // Update the box if ngModel changes diff --git a/build/angular-timezone-selector.js b/build/angular-timezone-selector.js index 54bca34..3d02bbd 100644 --- a/build/angular-timezone-selector.js +++ b/build/angular-timezone-selector.js @@ -62,6 +62,9 @@ angular.module('angular-timezone-selector', []) data.push(zonesForCountry) }) + // Sort by country name + data = _.sortBy(data, 'text') + // Construct a select box with the timezones grouped by country _.forEach(data, function (group) { var $optgroup = $('')