'formater' -> 'formatter'
[euphorik.git] / js / util.js
index 5feacb5..39f89b0 100644 (file)
   *  - Print a message box to display some information for the user.\r
   *  - Set a tooltip for a HTML element.\r
   *  - Some text manipulation for input area.\r
-  * @formater An object for string format\r
+  * @formatter An object for string format\r
   */\r
-euphorik.Util = function (formater) {\r
+euphorik.Util = function (formatter) {\r
    $("#info .close").click(function() {\r
       $("#info").slideUp(50);\r
    });\r
 \r
    $("body").append('<div id="tooltipArrow"></div>').append('<div id="tooltipMessage"><p></p></div>');\r
 \r
-   this.formater = formater;\r
+   this.formatter = formatter;\r
    this.bulleActive = true;\r
 };\r
 \r
@@ -43,7 +43,7 @@ euphorik.Util.messageType = {informatif: 0, question: 1, erreur: 2};
   * @message [String] The message.\r
   * @type [euphorik.Util.messageType] The message type like 'information' or 'error'. Default is messageType.informatif.\r
   * @buttons An object where the properties are the labels and the values are functions which will be executed when a button is clicked.\r
-  * @format [bool] The message should be formated. (see 'formater.js')\r
+  * @format [bool] The message should be formated. (see 'formatter.js')\r
   * @time The time while the message is displayed. -1 for infinity.\r
   */\r
 euphorik.Util.prototype.messageDialog = function(message, type, buttons, format, time) {\r
@@ -59,7 +59,7 @@ euphorik.Util.prototype.messageDialog = function(message, type, buttons, format,
    var close = function() { $("#info").slideUp(100); };\r
    close();\r
 \r
-   $("#info .message").html(!thisUtil.formater || !format ? message : thisUtil.formater.completeProcessing(message));\r
+   $("#info .message").html(!thisUtil.formatter || !format ? message : thisUtil.formatter.completeProcessing(message));\r
 \r
    switch(type) {\r
       case euphorik.Util.messageType.informatif : $("#info #icone").attr("class", "information"); break;\r