From 925b2080a0341d9348feeb4f492957a2e2c80082 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Thu, 24 Jul 2014 14:20:31 -0700 Subject: [PATCH] fix(docs): change plnkr form to open in same window Form previously posted to target="_blank", but pop-up blockers were causing this to not work. If a user chose to bypass pop-up blocker one time and click the link, they would arrive at a new default plnkr, not a plnkr with the desired template. This fix removes the _blank target, causing the plnkr to open in the current window/tab. --- docs/app/src/examples.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/app/src/examples.js b/docs/app/src/examples.js index b39acb895c8c..2d882ea25f45 100644 --- a/docs/app/src/examples.js +++ b/docs/app/src/examples.js @@ -2,7 +2,12 @@ angular.module('examples', []) .factory('formPostData', ['$document', function($document) { return function(url, fields) { - var form = angular.element('
'); + /** + * Form previously posted to target="_blank", but pop-up blockers were causing this to not work. + * If a user chose to bypass pop-up blocker one time and click the link, they would arrive at + * a new default plnkr, not a plnkr with the desired template. + */ + var form = angular.element('
'); angular.forEach(fields, function(value, name) { var input = angular.element(''); input.attr('value', value);