X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..ef91a7f4f3c6468973e192335a27ec0e0faca0b5:/wp-includes/js/tinymce/utils/validate.js diff --git a/wp-includes/js/tinymce/utils/validate.js b/wp-includes/js/tinymce/utils/validate.js index 760d0290..bfdbc787 100644 --- a/wp-includes/js/tinymce/utils/validate.js +++ b/wp-includes/js/tinymce/utils/validate.js @@ -1,11 +1,11 @@ /** * validate.js * - * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. + * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing + * License: http://www.tinymce.com/license + * Contributing: http://www.tinymce.com/contributing */ /** @@ -111,7 +111,7 @@ var AutoValidator = { invalidate : function(n) { this.mark(n.form, n); }, - + getErrorMessages : function(f) { var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor; nl = this.tags(f, "label"); @@ -129,7 +129,7 @@ var AutoValidator = { } else { message = ed.getLang('invalid_data'); } - + message = message.replace(/{\#([^}]+)\}/g, function(a, b) { return values[b] || '{#' + b + '}'; });