       slideTime: 200
       showTime: 3600
       showTimePerChar: 30
-      showAjaxErrors: true
-      showAjaxSuccesses: true
-      showFormError: true  # can be function (parsedJSON)
-      hideOnClick: true
-      removeOnHide: true
+      showAjaxErrors: true                  # catch global jQuery.ajaxErrors(), try detect message and show it
+      showAjaxSuccesses: true               # catch global jQuery.ajaxSuccessess(), try detect message and show it
+      detectFormErrors: true                # can be function (parsedJSON)
+      detectPlainTextMaxLength: 200         # if response has plain text and its length fits, show it
+      hideOnClick: true                     # click on notice fire hide()
+      removeOnHide: true                    # remove notice DOM-element on hide
       forceAddDotsAfterLastWord: false
       forceRemoveDotsAfterLastWord: false
       regExpLastWordWithoutDot: /[\wа-яёА-ЯЁ]{3,}$/

 *
###

# TODO I18n.js and I18n-lite.js support
# TODO architecture of wiggets in ultimate/widgets.js.coffee

class UltimateFlashWidget


  settings: {}

  constructor: (@jContainer, options = {}) ->
    if I18n? and I18n.locale and I18n.t
      options['locale'] ||= I18n.locale
      if _localesFromI18n = I18n.t 'ultimate_flash'
        _defaultLocales = @constructor.defaults.locales[I18n.locale]
        for key, value of _localesFromI18n
          _defaultLocales[_.camelize key] = value
    _locale = options['locale'] or @constructor.defaults.options['locale']
    $.error "Locale [#{_locale}] not exists in UltimateFlash default locales."  unless @constructor.defaults.locales[_locale]
    @settings = $.extend {}, @constructor.defaults.options, @constructor.defaults.locales[_locale], options
