Sha256: f4a1483181d53d3fe8d733988321ca239c1deac6d3768836f7b1a2fa91201ef7

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

angular.module('EssayApp.services')
  .factory('UploaderManager', ["$http", "$q", ($http, $q) ->
    api = {}

    api.THEMES =
      DEFAULT: 'default'
      WEB_ONLY: 'only_web'
      WEB_FILES: 'web_and_files'

    api.theme = api.THEMES.DEFAULT

    api.isCurrent = (theme)->
      theme? && (api.theme == theme)

    api.toggleTheme = (theme)->
      api.theme = theme if theme?

    return api
  ])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/assets/javascripts/app/services/uploader_manager.js.coffee