Skip to content

Commit

Permalink
unfucking js files
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Santagada committed Nov 12, 2013
1 parent b17507e commit f31c7ab
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
19 changes: 11 additions & 8 deletions course_material/static/js/course_material/filters.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
'use strict';

/* Filters */
(function (angular, Markdown) {
'use strict';

angular.module('courseMaterial.filters', ["ngSanitize"]).
filter('markdown', ['$window', function($window) {
return function(text) {
return text ? Markdown.getSanitizingConverter().makeHtml(text) : "";
};
}]);
/* Filters */

angular.module('courseMaterial.filters', ["ngSanitize"]).
filter('markdown', ['$window', function($window) {
return function(text) {
return text ? Markdown.getSanitizingConverter().makeHtml(text) : "";
};
}]);
})(angular, Markdown);
28 changes: 16 additions & 12 deletions course_material/static/js/course_material/services.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
'use strict';

/* Services */

angular.module('courseMaterial.services', ['ngRoute', 'ngResource']).
factory('CourseMaterial', function($resource){
return $resource('/api/course_material/:course/', {}, {
update: {method: 'PUT'},


(function (angular) {
'use strict';

/* Services */

angular.module('courseMaterial.services', ['ngRoute', 'ngResource']).
factory('CourseMaterial', function($resource){
return $resource('/api/course_material/:course/', {}, {
update: {method: 'PUT'}
});
}).
factory('Course', function($resource){
return $resource('/api/course/:course_slug/',{});
});
}).
factory('Course', function($resource){
return $resource('/api/course/:course_slug/',{});
});

})(angular);

0 comments on commit f31c7ab

Please sign in to comment.