# -*- encoding : utf-8 -*- require "friends_ajax_core/version" require "friends_ajax_core" module FriendsAjaxCore class FriendsAjaxEngine < Rails::Engine initializer "friends_ajax_core.load_const" do # -*- encoding : utf-8 -*- #= AJAX elemtent id's and ccs selectors #== Default div id's, global layout etc... # id name of the main Ajax Overlay Container # there are tow defalt containers to provide more flexibility ::AJAX_OVERLAY_CONTAINER_NAME = "ajax-overlay-container" ::AJAX_OVERLAY_CONTAINER_NAME_2 = "ajax-overlay-container-2" ::AJAX_OVERLAY_CLASS = "ajax-overlay" ::INFO_OVERLAY_CLASS = "info-overlay" ::AJAX_OVERLAY_LAYOUT = "ajax_overlay" ::INFO_OVERLAY_LAYOUT = "info_overlay" # Prefix for setting :update div via css ::AJAX_UPDATE_DIV_SELECTOR = "update-div-" # Default ajax link class name ::AJAX_DEFAULT_LINK = "ajax-default-link" ::AJAX_NOT_LOADED = "ajax-not-loaded" # Trigger for showing load message box ::AJAX_LOAD_MESSAGE_TRIGGER = "load-message-true" ::AJAX_HIDE_LOAD_MESSAGE_SELECTOR = "hide-load-message" ::AJAX_PUSH_PROGRESS_TRIGGER = "push-progress-trigger" # Just show loader icon ::AJAX_TINY_LOAD_TRIGGER = "tiny-loader" # div area for showing flash notice/errors ::FLASH_AREA_DIV = "notify-area" # Werden Daten aus Formular etc. versendet? ::AJAX_SUBMIT_DATA_TRIGGER = "data-submit-data" # Trigger für EqualHeightFunktionen # block-Elemente gleich hoch machen ::EQUAL_HEIGHT_SELECTOR = "equal-height-cols" ::EQUAL_HEIGHT_GROUP_DATA = "data-equal-height-group" #== Footer, Filetree Pushserver div ids # All elements which are used in the footer area, for filetree and pushserver #=== Footer search ::FOOTER_SEARCH_FORM_ID = "footer-search-form" ::FOOTER_SEARCH_QUERY_ID = "footer-search-query" ::FOOTER_SEARCH_RESULTS_ID = "footer-search-results" #=== Filetree ::FILE_TREE_FOLDER_LINK_CLOSED = "file-tree-directory-closed" ::FILE_TREE_FOLDER_LINK_OPEN = "file-tree-directory-open" ::FILE_TREE_PREFIX = "file-content" #== Data Types (HTML 5 data-attribute) # Bestätigung per confirm ::HTML_DATA_CONFIRM = "data-confirm" ::HTML_CONFIRM_DEFAULT = "Sind Sie sicher?" # Nachricht für loadMessage ::HTML_DATA_LOADING = "data-loading" ::HTML_LOAD_DEFAULT = "Daten werden geladen" ::HTML_TINY_LOAD_DEFAULT = "wird geladen" # Wird ein Callbackausgeführt (JS) ::HTML_DATA_CALLBACK = "data-callback" # Ziel-Div wird nicht überschrieben ::HTML_DATA_APPEND = "data-append" #== Forms - Triggers for select onchange etc # Ziel URL als HTML5-Data ::HTML_DATA_TARGET_URL = "data-target-url" # url-Paramter für ausgewählten Wert (ehem. :with => 'value='+this.value) # Url Value replacment string ::HTML_URL_VALUE_PLACEHOLDER = ".-." # Selectbox für Ajax Trigger aktivieren ::FORM_SELECT_CHANGE_SELECTOR = "select-onchange" # Datepicker aktuelles Datum ::HTML_DATA_CURRENT_DATE = "data-current-date" ::HTML_DATA_CURRENT_YEAR = "data-selected-year" # Autocomplete - Magical Dropdown boxes ::AUTOCOMPLETE_SELECTOR = "autocomplete-text-field" ::AUTOCOMPLETE_DATA_VALUE = "data-autocomplete-values" ::AUTOCOMPLETE_SOURCE_URL = "/ajax/auto_complete?source=" #=== Concept # Selector für Concept Datepickers ::DEFAULT_DATEPICKER_SELECTOR = "default-date-picker" ::DEFAULT_MONTHPICKER_SELECTOR = "default-month-picker" ::DEFAULT_DATETIMEPICKER_SELECTOR = "default-datetime-picker" end end end