|
52 | 52 |
|
53 | 53 |
|
54 | 54 | angular.module('dimApp')
|
55 |
| - .run(['$rootScope', 'loadingTracker', '$timeout', 'toaster', |
56 |
| - function($rootScope, loadingTracker, $timeout, toaster) { |
| 55 | + .run(['$rootScope', 'loadingTracker', '$timeout', 'toaster', '$http', |
| 56 | + function($rootScope, loadingTracker, $timeout, toaster, $http) { |
57 | 57 | $rootScope.loadingTracker = loadingTracker;
|
58 | 58 |
|
59 | 59 | //1 Hour
|
|
73 | 73 | //Track Our Initial Activity of Starting the App
|
74 | 74 | $rootScope.trackActivity();
|
75 | 75 |
|
76 |
| - chrome.storage.sync.get('2016.03.13-v3.4.0', function(data) { |
| 76 | + chrome.storage.sync.get('20160411v35', function(data) { |
77 | 77 | if(_.isNull(data) || _.isEmpty(data)) {
|
| 78 | + |
78 | 79 | $timeout(function() {
|
79 |
| - toaster.pop({ |
80 |
| - type: 'info', |
81 |
| - title: 'DIM v3.5 Released', |
82 |
| - body: [ |
83 |
| - "<p>You've been asking about it since DIM was first released, and it's finally here: you can now move partial quantities of stacked items! Hold shift when dragging, hover over the drop point, or use the popup to choose how much to move. New \"take\" and \"split\" commands and the ability to add consumables to your loadouts rounds out the new functionality.</p>", |
84 |
| - '<p>On top of that, DIM has gotten faster! You should notice transfers, especially with loadouts, zipping along more smoothly now.</p>', |
85 |
| - '<p>Our <a href="https://github.com/DestinyItemManager/DIM/blob/dev/CHANGELOG.md" target="_blank">changelog</a> is available if you would like to know more.', |
86 |
| - '<p>Visit us on Twitter and Reddit to learn more about these and other updates in v3.5', |
87 |
| - '<p>Follow us on: <a style="margin: 0 5px;" href="http://destinyitemmanager.reddit.com" target="_blank"><i<i class="fa fa-reddit fa-2x"></i></a> <a style="margin: 0 5px;" href="http://twitter.com/ThisIsDIM" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>', |
88 |
| - '<p><input style="margin-top: 1px; vertical-align: middle;" id="20160304v332" type="checkbox"> <label for="20160304v332">Hide This Popup</label></p>' |
89 |
| - ].join(''), |
90 |
| - timeout: 0, |
91 |
| - bodyOutputType: 'trustedHtml', |
92 |
| - showCloseButton: true, |
93 |
| - clickHandler: function(a, b, c, d, e, f, g) { |
94 |
| - if(b) { |
95 |
| - return true; |
| 80 | + $http.get('views/changelog-toaster.html?v=v3.5') |
| 81 | + .then(function(changelog) { |
| 82 | + toaster.pop({ |
| 83 | + type: 'info', |
| 84 | + title: 'DIM v3.5 Released', |
| 85 | + body: changelog.data, |
| 86 | + timeout: 0, |
| 87 | + bodyOutputType: 'trustedHtml', |
| 88 | + showCloseButton: true, |
| 89 | + clickHandler: function(a, b, c, d, e, f, g) { |
| 90 | + if(b) { |
| 91 | + return true; |
| 92 | + } |
| 93 | + |
| 94 | + return false; |
| 95 | + }, |
| 96 | + onHideCallback: function() { |
| 97 | + if($('#20160411v35') |
| 98 | + .is(':checked')) { |
| 99 | + chrome.storage.sync.set({ |
| 100 | + "20160411v35": 1 |
| 101 | + }, function(e) {}); |
| 102 | + } |
96 | 103 | }
|
| 104 | + }); |
97 | 105 |
|
98 |
| - return false; |
99 |
| - }, |
100 |
| - onHideCallback: function() { |
101 |
| - if($('#20160304v332') |
102 |
| - .is(':checked')) { |
103 |
| - chrome.storage.sync.set({ |
104 |
| - "2016.03.13-v3.4.0": 1 |
105 |
| - }, function(e) {}); |
106 |
| - } |
107 |
| - } |
108 | 106 | });
|
109 | 107 | }, 3000);
|
110 | 108 | }
|
|
0 commit comments