public/js/lib/alertify.js
function (item) {
				var html    = "",
				    type    = item.type,
				    message = item.message,
				    css     = item.cssClass || "";

				html += "<div class=\"alertify-dialog\">";

				if (_alertify.buttonFocus === "none") html += "<a href=\"#\" id=\"alertify-noneFocus\" class=\"alertify-hidden\"></a>";

				if (type === "prompt") html += "<form id=\"alertify-form\">";

				html += "<article class=\"alertify-inner\">";
				html += dialogs.message.replace("{{message}}", message);

				if (type === "prompt") html += dialogs.input;

				html += dialogs.buttons.holder;
				html += "</article>";

				if (type === "prompt") html += "</form>";

				html += "<a id=\"alertify-resetFocus\" class=\"alertify-resetFocus\" href=\"#\">Reset Focus</a>";
				html += "</div>";

				switch (type) {
				case "confirm":
					html = html.replace("{{buttons}}", this.appendButtons(dialogs.buttons.cancel, dialogs.buttons.ok));
					html = html.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel);
					break;
				case "prompt":
					html = html.replace("{{buttons}}", this.appendButtons(dialogs.buttons.cancel, dialogs.buttons.submit));
					html = html.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel);
					break;
				case "alert":
					html = html.replace("{{buttons}}", dialogs.buttons.ok);
					html = html.replace("{{ok}}", this.labels.ok);
					break;
				default:
					break;
				}

				elDialog.className = "alertify alertify-" + type + " " + css;
				elCover.className  = "alertify-cover";
				return html;
			}
function (item) {
				var html    = "",
				    type    = item.type,
				    message = item.message,
				    css     = item.cssClass || "";

				html += "<div class=\"alertify-dialog\">";

				if (_alertify.buttonFocus === "none") html += "<a href=\"#\" id=\"alertify-noneFocus\" class=\"alertify-hidden\"></a>";

				if (type === "prompt") html += "<form id=\"alertify-form\">";

				html += "<article class=\"alertify-inner\">";
				html += dialogs.message.replace("{{message}}", message);

				if (type === "prompt") html += dialogs.input;

				html += dialogs.buttons.holder;
				html += "</article>";

				if (type === "prompt") html += "</form>";

				html += "<a id=\"alertify-resetFocus\" class=\"alertify-resetFocus\" href=\"#\">Reset Focus</a>";
				html += "</div>";

				switch (type) {
				case "confirm":
					html = html.replace("{{buttons}}", this.appendButtons(dialogs.buttons.cancel, dialogs.buttons.ok));
					html = html.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel);
					break;
				case "prompt":
					html = html.replace("{{buttons}}", this.appendButtons(dialogs.buttons.cancel, dialogs.buttons.submit));
					html = html.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel);
					break;
				case "alert":
					html = html.replace("{{buttons}}", dialogs.buttons.ok);
					html = html.replace("{{ok}}", this.labels.ok);
					break;
				default:
					break;
				}

				elDialog.className = "alertify alertify-" + type + " " + css;
				elCover.className  = "alertify-cover";
				return html;
			}
function ( item ) { var html = "" , type = item . type , message = item . message , css = item . cssClass || "" ; html += "<div class=\"alertify-dialog\">" ; if ( _alertify . buttonFocus === "none" ) html += "<a href=\"#\" id=\"alertify-noneFocus\" class=\"alertify-hidden\"></a>" ; if ( type === "prompt" ) html += "<form id=\"alertify-form\">" ; html += "<article class=\"alertify-inner\">" ; html += dialogs . message . replace ( "{{message}}" , message ) ; if ( type === "prompt" ) html += dialogs . input ; html += dialogs . buttons . holder ; html += "</article>" ; if ( type === "prompt" ) html += "</form>" ; html += "<a id=\"alertify-resetFocus\" class=\"alertify-resetFocus\" href=\"#\">Reset Focus</a>" ; html += "</div>" ; switch ( type ) { case "confirm" : html = html . replace ( "{{buttons}}" , this . appendButtons ( dialogs . buttons . cancel , dialogs . buttons . ok ) ) ; html = html . replace ( "{{ok}}" , this . labels . ok ) . replace ( "{{cancel}}" , this . labels . cancel ) ; break ; case "prompt" : html = html . replace ( "{{buttons}}" , this . appendButtons ( dialogs . buttons . cancel , dialogs . buttons . submit ) ) ; html = html . replace ( "{{ok}}" , this . labels . ok ) . replace ( "{{cancel}}" , this . labels . cancel ) ; break ; case "alert" : html = html . replace ( "{{buttons}}" , dialogs . buttons . ok ) ; html = html . replace ( "{{ok}}" , this . labels . ok ) ; break ; default : break ; } elDialog . className = "alertify alertify-" + type + " " + css ; elCover . className = "alertify-cover" ; return html ; }
Build the proper message box

@param  {Object} item    Current object in the queue

@return {String}         An HTML string of the message box
Build the proper message box