Просмотр исходного кода

Maintenance: Fixed typos in inline comments.

Denny Bresch 5 лет назад
Родитель
Сommit
bc38f1c1ae

+ 6 - 6
app/assets/javascripts/app/controllers/_application_controller.coffee

@@ -4,7 +4,7 @@ class App.Controller extends Spine.Controller
 
   constructor: (params) ->
 
-    # unbind old bindlings
+    # unbind old bindings
     if params && params.el && params.el.unbind
       params.el.unbind()
 
@@ -93,7 +93,7 @@ class App.Controller extends Spine.Controller
     @off()
     @stopListening()
 
-  # add @title methode to set title
+  # add @title method to set title
   title: (name, translate = false) ->
 #    $('html head title').html(@Config.get(product_name) + ' - ' + App.i18n.translateInline(name))
     title = name
@@ -115,18 +115,18 @@ class App.Controller extends Spine.Controller
     App.Interval.reset()
     App.WebSocket.close(force: true)
 
-  # add @notify methode to create notification
+  # add @notify method to create notification
   notify: (data) ->
     App.Event.trigger 'notify', data
 
-  # add @notifyDesktop methode to create desktop notification
+  # add @notifyDesktop method to create desktop notification
   notifyDesktop: (data) ->
     App.Event.trigger 'notifyDesktop', data
 
-  # add @navupdate methode to update navigation
+  # add @navupdate method to update navigation
   navupdate: (url, force = false) ->
 
-    # ignore navupdate untill #clues are gone
+    # ignore navupdate until #clues are gone
     return if !force && window.location.hash is '#clues'
 
     App.Event.trigger 'navupdate', url

+ 2 - 2
app/assets/javascripts/app/controllers/_application_controller_form.coffee

@@ -689,7 +689,7 @@ class App.ControllerForm extends App.Controller
       # set forms to read only during communication with backend
       lookupForm.find('button, input, select, textarea').prop('readonly', true)
 
-      # disable radio and checbkox buttons
+      # disable radio and checkbox buttons
       lookupForm.find('input[type=checkbox], input[type=radio]').prop('disabled', true)
 
       # disable additionals submits
@@ -714,7 +714,7 @@ class App.ControllerForm extends App.Controller
       # enable fields again
       lookupForm.find('button, input, select, textarea').prop('readonly', false)
 
-      # enable radio and checbkox buttons
+      # enable radio and checkbox buttons
       lookupForm.find('input[type=checkbox], input[type=radio]').prop('disabled', false)
 
       # enable submits again

+ 1 - 1
app/assets/javascripts/app/controllers/_application_controller_generic.coffee

@@ -740,7 +740,7 @@ class App.Sidebar extends App.Controller
       dir:            App.i18n.dir()
     ))
 
-    # init sidebar badget
+    # init sidebar badge
     for item in itemsLocal
       el = localEl.find('.tabsSidebar-tab[data-tab="' + item.name + '"]')
       if item.badgeCallback

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/facebook.coffee

@@ -167,7 +167,7 @@ class AppConfig extends App.ControllerModal
   onSubmit: (e) =>
     @formDisable(e)
 
-    # verify app credentals
+    # verify app credentials
     @ajax(
       id:   'facebook_app_verify'
       type: 'POST'

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/twitter.coffee

@@ -168,7 +168,7 @@ class AppConfig extends App.ControllerModal
   onSubmit: (e) =>
     @formDisable(e)
 
-    # verify app credentals
+    # verify app credentials
     @ajax(
       id:   'twitter_app_verify'
       type: 'POST'

+ 1 - 1
app/assets/javascripts/app/controllers/_integration/ldap.coffee

@@ -351,7 +351,7 @@ class ConnectionWizard extends App.WizardModal
           @showAlert('js-bind', 'Unable to retrive group information, please check your bind user permissions.')
           return
 
-        # update config if successfull
+        # update config if successful
         for key, value of params
           @wizardConfig[key] = value
 

+ 4 - 4
app/assets/javascripts/app/controllers/_profile/avatar.coffee

@@ -28,7 +28,7 @@ class Index extends App.ControllerSubContent
     )
 
   # check if the browser supports webcam access
-  # doesnt render the camera button if not
+  # doesn't render the camera button if not
   hasGetUserMedia: ->
     return !!(navigator.getUserMedia || navigator.webkitGetUserMedia ||
             navigator.mozGetUserMedia || navigator.msGetUserMedia)
@@ -286,7 +286,7 @@ class Camera extends App.ControllerModal
     @shootButton.removeClass 'is-disabled'
 
     # in case the modal is closed before the
-    # request was fullfilled
+    # request was fulfilled
     if @hidden
       @stopStream()
       return
@@ -316,7 +316,7 @@ class Camera extends App.ControllerModal
 
   onWebcamError: (error) =>
     # in case the modal is closed before the
-    # request was fullfilled
+    # request was fulfilled
     if @hidden
       return
 
@@ -348,7 +348,7 @@ class Camera extends App.ControllerModal
   updatePreview: =>
     # try catch fixes a Firefox error
     # were the drawImage wouldn't work
-    # because the video didn't get inizialized
+    # because the video didn't get initialized
     # yet internally
     # http://stackoverflow.com/questions/18580844/firefox-drawimagevideo-fails-with-ns-error-not-available-component-is-not-av
     try

+ 1 - 1
app/assets/javascripts/app/controllers/_settings/area.coffee

@@ -12,7 +12,7 @@ class App.SettingsArea extends App.Controller
 
   render: =>
 
-    # serach area settings
+    # search area settings
     settings = App.Setting.search(
       filter:
         area: @area

+ 1 - 1
app/assets/javascripts/app/controllers/_settings/form.coffee

@@ -15,7 +15,7 @@ class App.SettingsForm extends App.Controller
 
   render: =>
 
-    # serach area settings
+    # search area settings
     settings = App.Setting.search(
       filter:
         area: @area

+ 1 - 1
app/assets/javascripts/app/controllers/_ui_element/active.coffee

@@ -18,7 +18,7 @@ class App.UiElement.active extends App.UiElement.ApplicationUiElement
     # sort attribute.options
     @sortOptions(attribute, params)
 
-    # finde selected/checked item of list
+    # find selected/checked item of list
     @selectedOptions(attribute, params)
 
     # return item

Некоторые файлы не были показаны из-за большого количества измененных файлов