* - 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
* @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
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