comparison test_create/test_core.js @ 2875:18261c4593c4

Open exported XML in new tab, not same tab
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 31 May 2017 11:43:48 +0100
parents d5e7f45b15e7
children 88dff8b9247c
comparison
equal deleted inserted replaced
2874:dafc6eba55fc 2875:18261c4593c4
101 var doc = specification.encode(); 101 var doc = specification.encode();
102 var bb = new Blob([s.serializeToString(doc)], { 102 var bb = new Blob([s.serializeToString(doc)], {
103 type: 'application/xml' 103 type: 'application/xml'
104 }); 104 });
105 var dnlk = window.URL.createObjectURL(bb); 105 var dnlk = window.URL.createObjectURL(bb);
106 window.location.href = dnlk; 106 $w.open(dnlk, "_blank");
107 }; 107 };
108 }]); 108 }]);
109 109
110 AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) { 110 AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) {
111 $s.state = 0; 111 $s.state = 0;