Skip to content

Commit

Permalink
Remove angular-filemanager 404 (#705)
Browse files Browse the repository at this point in the history
Fix camp members.js
  • Loading branch information
NitayRabi authored and amotenko committed Mar 4, 2018
1 parent c86f17d commit c28723b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions public/scripts/controllers/camp_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions views/includes/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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}' )
Expand All @@ -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")
Expand Down

0 comments on commit c28723b

Please sign in to comment.