зеркало из https://github.com/mozilla/seasponge.git
Родитель
3f5497c270
Коммит
c6b9ace1b5
|
@ -28,8 +28,8 @@ angular.module('seaspongeApp')
|
||||||
$scope.semverRegex = new RegExp("\\bv?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?\\b")
|
$scope.semverRegex = new RegExp("\\bv?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?\\b")
|
||||||
|
|
||||||
$scope.newThreat = {
|
$scope.newThreat = {
|
||||||
name: ''
|
name: 'Untitled Threat'
|
||||||
severity: null
|
severity: 'Medium'
|
||||||
description: ''
|
description: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,14 +105,10 @@ angular.module('seaspongeApp')
|
||||||
# )()
|
# )()
|
||||||
|
|
||||||
$scope.generateThreat = ->
|
$scope.generateThreat = ->
|
||||||
model.addThreat($scope.newThreat)
|
newThreat = $.extend(true, {}, $scope.newThreat);
|
||||||
|
model.addThreat(newThreat)
|
||||||
$scope.menu.newThreatOpen = false
|
$scope.menu.newThreatOpen = false
|
||||||
$scope.menu.threatsOpen = true
|
$scope.menu.threatsOpen = true
|
||||||
$scope.newThreat = {
|
|
||||||
name: ''
|
|
||||||
severity: null
|
|
||||||
description: ''
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.shareModel = ->
|
$scope.shareModel = ->
|
||||||
model = $scope.model
|
model = $scope.model
|
||||||
|
|
Загрузка…
Ссылка в новой задаче