Skip to content

Commit

Permalink
perf(code): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 2, 2019
1 parent 1a39aa8 commit 362c4f3
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 1,159 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ public/uploads/assets/*.*
backups/

public/uploads/assets/upload/

stats\.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"supertest": "3.4.1",
"terser-webpack-plugin": "1.2.1",
"webpack": "4.29.0",
"webpack-bundle-analyzer": "3.0.4",
"webpack-cli": "3.2.1"
},
"release": {
Expand Down
15 changes: 1 addition & 14 deletions src/public/js/angularjs/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ define([
'angularjs/controllers/notices',
'angularjs/controllers/plugins',
'angularjs/controllers/reports',
'angularjs/controllers/settings-permissions',
'angularjs/controllers/editor'
], function ($, angular, _) {
return angular
Expand All @@ -42,19 +41,7 @@ define([
'trudesk.controllers.notices',
'trudesk.controllers.plugins',
'trudesk.controllers.reports',
'trudesk.controllers.settings.permissions',
'trudesk.controllers.editor'
])
.controller('TrudeskController', function ($rootScope, $scope) {
$scope.submitForm = function (formName, $event) {
if (_.isNull(formName) || _.isUndefined(formName)) return true

$event.preventDefault()

var form = $('#' + formName)
if (!_.isUndefined(form)) {
form.submit()
}
}
})
.controller('TrudeskController', function ($rootScope, $scope) {})
})
Loading

0 comments on commit 362c4f3

Please sign in to comment.