-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from matortheeternal/dev
Public Beta Hotfix Release v1.0.2
- Loading branch information
Showing
76 changed files
with
1,505 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 26 additions & 9 deletions
35
mod-picker/app/assets/javascripts/BackendAPI/tagService.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
mod-picker/app/assets/javascripts/Directives/shared/editTagModal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
app.directive('editTagModal', function() { | ||
return { | ||
restrict: 'E', | ||
templateUrl: '/resources/directives/shared/editTagModal.html', | ||
controller: 'editTagModalController', | ||
scope: false | ||
} | ||
}); | ||
|
||
app.controller('editTagModalController', function($scope, tagService, formUtils, eventHandlerFactory) { | ||
// inherited functions | ||
$scope.unfocusTagModal = formUtils.unfocusModal($scope.toggleTagModal); | ||
|
||
// shared function setup | ||
eventHandlerFactory.buildModalMessageHandlers($scope); | ||
|
||
$scope.saveTag = function() { | ||
tagService.updateTag($scope.activeTag).then(function() { | ||
$scope.$emit('modalSuccessMessage', 'Updated tag "' + $scope.activeTag.text + '"successfully'); | ||
$scope.$applyAsync(function() { | ||
$scope.originalTag.text = $scope.activeTag.text; | ||
}); | ||
}, function(response) { | ||
var params = { | ||
text: 'Error updating tag: '+$scope.activeTag.text, | ||
response: response | ||
}; | ||
$scope.$emit('modalErrorMessage', params); | ||
}); | ||
}; | ||
}); |
27 changes: 27 additions & 0 deletions
27
mod-picker/app/assets/javascripts/Directives/shared/modOptionTree.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
app.directive('modOptionTree', function() { | ||
return { | ||
restrict: 'E', | ||
templateUrl: '/resources/directives/shared/modOptionTree.html', | ||
scope: { | ||
modOptions: '=' | ||
}, | ||
controller: 'modOptionTreeController' | ||
} | ||
}); | ||
|
||
app.controller('modOptionTreeController', function($scope) { | ||
$scope.toggleModOption = function(option) { | ||
// recurse into children | ||
option.children && option.children.forEach(function(child) { | ||
if (child.active && !option.active) { | ||
child.active = false; | ||
} | ||
}); | ||
// emit message | ||
$scope.$emit('toggleModOption', option); | ||
}; | ||
|
||
$scope.toggleExpansion = function(option) { | ||
option.expanded = !option.expanded; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.