Changeset 6450


Ignore:
Timestamp:
Apr 22, 2014, 9:59:11 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #1734: Replace alert() messages in form validation with something better-lookin

Add parameter to force left- or right-align of message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/include/scripts/main-2.js

    r6449 r6450  
    19771977    @param pointerClass Optional, if not given the function will automatically decide if
    19781978      the pointer is above or below the notification. Accept values: pointer-above, pointer-below, pointer-left
    1979   */
    1980   forms.showNotification = function(element, message, subclass, pointerClass)
     1979    @param pointerAlign 'left' or 'right', if not specified auto-select depending on location on page
     1980  */
     1981  forms.showNotification = function(element, message, subclass, pointerClass, pointerAlign)
    19811982  {
    19821983    element = Doc.element(element);
     
    20312032      if (!pointerPos)
    20322033      {
    2033         if (pos.left > winPos.width / 2)
     2034        if (pos.left > winPos.width / 2 && pointerAlign != 'left')
    20342035        {
    20352036          // If we are on the right side of the window,
Note: See TracChangeset for help on using the changeset viewer.