diff --git a/docs/app/assets/img/AngularJS-small.png b/docs/app/assets/img/AngularJS-small.png index ab5e20f883c1..eb08948b6e5b 100644 Binary files a/docs/app/assets/img/AngularJS-small.png and b/docs/app/assets/img/AngularJS-small.png differ diff --git a/docs/app/assets/img/bullet.png b/docs/app/assets/img/bullet.png index 3575a8e60f48..33280db2e501 100644 Binary files a/docs/app/assets/img/bullet.png and b/docs/app/assets/img/bullet.png differ diff --git a/docs/app/src/search.js b/docs/app/src/search.js index 1be6614f3846..c239e5d5675c 100644 --- a/docs/app/src/search.js +++ b/docs/app/src/search.js @@ -67,6 +67,12 @@ angular.module('search', []) clearResults(); $scope.q = ''; }; + + $scope.handleResultClicked = function($event) { + if ($event.which === 1 && !$event.ctrlKey && !$event.metaKey) { + $scope.hideResults(); + } + }; }]) diff --git a/docs/config/services/deployments/production.js b/docs/config/services/deployments/production.js index 7d92001e2e1d..7a8cace0d53e 100644 --- a/docs/config/services/deployments/production.js +++ b/docs/config/services/deployments/production.js @@ -7,22 +7,23 @@ var angularCodeUrl = '//code.angularjs.org/'; var cdnUrl = googleCdnUrl + versionInfo.cdnVersion; -// The "examplesCdnUrl" here applies to the examples when they are opened in plnkr.co. +// The "examplesDependencyPath" here applies to the examples when they are opened in plnkr.co. // The embedded examples instead always include the files from the *default* deployment, // to ensure that the source files are always available. // The plnkr examples must always use the code.angularjs.org source files. // We cannot rely on the CDN files here, because they are not deployed by the time // docs.angularjs.org and code.angularjs.org need them. -var examplesDependencyPath = versionInfo.currentVersion.isSnapshot ? - (angularCodeUrl + 'snapshot') : - (angularCodeUrl + (versionInfo.currentVersion.version || versionInfo.currentVersion.version)); +var versionPath = versionInfo.currentVersion.isSnapshot ? + 'snapshot' : + (versionInfo.currentVersion.version || versionInfo.currentVersion.version); +var examplesDependencyPath = angularCodeUrl + versionPath + '/'; module.exports = function productionDeployment(getVersion) { return { name: 'production', examples: { commonFiles: { - scripts: [examplesDependencyPath + '/angular.min.js'] + scripts: [examplesDependencyPath + 'angular.min.js'] }, dependencyPath: examplesDependencyPath }, diff --git a/docs/config/templates/app/indexPage.template.html b/docs/config/templates/app/indexPage.template.html index e779942cc115..3a543381f9b5 100644 --- a/docs/config/templates/app/indexPage.template.html +++ b/docs/config/templates/app/indexPage.template.html @@ -132,7 +132,7 @@