mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
- This module could be shared between Darkswarm and admin - add this new module to test environment
21 lines
648 B
CoffeeScript
21 lines
648 B
CoffeeScript
window.Darkswarm = angular.module("Darkswarm", [
|
|
'ngResource',
|
|
'mm.foundation',
|
|
'LocalStorageModule',
|
|
'infinite-scroll',
|
|
'angular-flash.service',
|
|
'templates',
|
|
'ngSanitize',
|
|
'ngAnimate',
|
|
'uiGmapgoogle-maps',
|
|
'duScroll',
|
|
'angularFileUpload',
|
|
'angularSlideables',
|
|
'OFNShared'
|
|
]).config ($httpProvider, $tooltipProvider, $locationProvider, $anchorScrollProvider) ->
|
|
$httpProvider.defaults.headers['common']['X-Requested-With'] = 'XMLHttpRequest'
|
|
$httpProvider.defaults.headers.common['Accept'] = "application/json, text/javascript, */*"
|
|
|
|
# We manually handle our scrolling
|
|
$anchorScrollProvider.disableAutoScrolling()
|