Skip to content

Commit

Permalink
Merge pull request #173 from shankari/implement_runtime_permissions
Browse files Browse the repository at this point in the history
Minor fix to collect_settings.js
  • Loading branch information
shankari authored Apr 8, 2019
2 parents f1443cd + a5a8e04 commit cda429d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "e-mission-data-collection",
"version": "1.3.2",
"description": "Simple package that stores all the connection settings that need to be configured",
"version": "1.3.3",
"description": "The main tracking for the e-mission platform",
"cordova": {
"id": "e-mission-data-collection",
"platforms": [
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="edu.berkeley.eecs.emission.cordova.datacollection"
version="1.3.2">
version="1.3.3">

<name>DataCollection</name>
<description>Background data collection FTW! This is the part that I really
Expand Down
10 changes: 6 additions & 4 deletions www/ui/ionic/js/collect-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ angular.module('emission.main.control.collection', [])

cch.forceTransition = function(transition) {
cch.forceTransitionWrapper(transition).then(function(result) {
$rootScope.$broadcast('control.update.complete', 'forceTransition');
$ionicPopup.alert({template: 'success -> '+result});
$ionicPopup.alert({template: 'success -> '+result}).then(function() {
$rootScope.$broadcast('control.update.complete', 'forceTransition');
});
}, function(error) {
$rootScope.$broadcast('control.update.complete', 'forceTransition');
$ionicPopup.alert({template: 'error -> '+error});
$ionicPopup.alert({template: 'error -> '+error}).then(function() {
$rootScope.$broadcast('control.update.complete', 'forceTransition');
});
});
};

Expand Down

0 comments on commit cda429d

Please sign in to comment.