diff --git a/public/scripts/controllers/camp_edit.js b/public/scripts/controllers/camp_edit.js index 89fda3da8..5b9edc478 100644 --- a/public/scripts/controllers/camp_edit.js +++ b/public/scripts/controllers/camp_edit.js @@ -35,7 +35,7 @@ var angular_getMembers = function ($http, $scope, camp_id) { $scope.total_in_event = total_in_event; }); } - + var angular_updateUser = function ($http, $scope, action_type, user_rec) { var camp_id = user_rec.camp_id; var user_name = user_rec.user_name; @@ -45,7 +45,7 @@ var angular_updateUser = function ($http, $scope, action_type, user_rec) { lang = 'he'; } var tpl, action_tpl; - + if (lang === "he") { // debugger; action_tpl = { @@ -84,7 +84,7 @@ var angular_updateUser = function ($http, $scope, action_type, user_rec) { alert_success_3: "success", }; } - + swal({ title: tpl.alert_title, text: tpl.alert_text, @@ -137,7 +137,7 @@ const angular_deleteCampFile = function ($http, $scope, $q, camp_id, doc_id) { return deleteFilePromise.promise } -app.controller("campEditController", ($scope, $http, $filter) => { +app.controller("campEditController", ($scope, $http, $filter, $q) => { var camp_id = document.querySelector('#meta__camp_id').value; var lang = $scope.lang; if (lang === undefined) { @@ -240,7 +240,7 @@ app.controller("campEditController", ($scope, $http, $filter) => { }) } - if (!_.isNil(camp_id) && _.isNumber(camp_id)) { + if (!_.isNil(camp_id) && Number(camp_id)) { $scope.current_camp_id = camp_id; $scope.getMembers(); $scope.getFiles(); diff --git a/views/includes/layout.jade b/views/includes/layout.jade index 0ec99db0f..93114cb72 100644 --- a/views/includes/layout.jade +++ b/views/includes/layout.jade @@ -15,7 +15,6 @@ head link(rel='stylesheet', href='/node_modules/font-awesome/css/font-awesome.min.css') link(rel='stylesheet', href='/node_modules/ui-select/dist/select.min.css') link(rel='stylesheet', href='/node_modules/selectize.js/dist/css/selectize.default.css') - link(rel='stylesheet', href='/node_modules/angular-filemanager/dist/angular-filemanager.min.css') link(rel="stylesheet", href="/stylesheets/main.scss" ) body( style='direction:#{languageDir}', lang=language, dir='#{languageDir}' ) @@ -37,7 +36,6 @@ body( style='direction:#{languageDir}', lang=language, dir='#{languageDir}' ) script(src="/node_modules/angular-animate/angular-animate.min.js") script(src="/node_modules/angular-sanitize/angular-sanitize.min.js") script(src="/node_modules/ui-select/dist/select.min.js") - script(src="/node_modules/angular-filemanager/dist/angular-filemanager.min.js") // Spark scripts script(src="/scripts/ng_app.js")