X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Futil.js;fp=js%2Futil.js;h=39f89b0370f72fd17b739fa7b494ada7e3a82637;hp=5feacb5fb09db4f9cb9712d468f86704593c06a5;hb=4a6c575807a90370c0069b688026b10102e1ce10;hpb=6926aecb1cdd777ef8c52f63291341a540670a2c diff --git a/js/util.js b/js/util.js index 5feacb5..39f89b0 100644 --- a/js/util.js +++ b/js/util.js @@ -23,16 +23,16 @@ * - Print a message box to display some information for the user. * - Set a tooltip for a HTML element. * - Some text manipulation for input area. - * @formater An object for string format + * @formatter An object for string format */ -euphorik.Util = function (formater) { +euphorik.Util = function (formatter) { $("#info .close").click(function() { $("#info").slideUp(50); }); $("body").append('
').append('

'); - this.formater = formater; + this.formatter = formatter; this.bulleActive = true; }; @@ -43,7 +43,7 @@ euphorik.Util.messageType = {informatif: 0, question: 1, erreur: 2}; * @message [String] The message. * @type [euphorik.Util.messageType] The message type like 'information' or 'error'. Default is messageType.informatif. * @buttons An object where the properties are the labels and the values are functions which will be executed when a button is clicked. - * @format [bool] The message should be formated. (see 'formater.js') + * @format [bool] The message should be formated. (see 'formatter.js') * @time The time while the message is displayed. -1 for infinity. */ euphorik.Util.prototype.messageDialog = function(message, type, buttons, format, time) { @@ -59,7 +59,7 @@ euphorik.Util.prototype.messageDialog = function(message, type, buttons, format, var close = function() { $("#info").slideUp(100); }; close(); - $("#info .message").html(!thisUtil.formater || !format ? message : thisUtil.formater.completeProcessing(message)); + $("#info .message").html(!thisUtil.formatter || !format ? message : thisUtil.formatter.completeProcessing(message)); switch(type) { case euphorik.Util.messageType.informatif : $("#info #icone").attr("class", "information"); break;