Commit d7c57121 authored by Mathijs den Burger's avatar Mathijs den Burger Committed by Michael Metternich

CMS-10756 Add jslint plugin to richtext/frontend module

(cherry picked from commit ddae21f5)
(cherry picked from commit 1b8b8682)
parent cc656f05
......@@ -111,6 +111,19 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<predefinedVars>
Hippo,
jQuery,
Wicket,
window,
</predefinedVars>
<sourceJsFolder>${basedir}/src/main/resources</sourceJsFolder>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
......
......@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function () {
(function ($) {
"use strict";
if (typeof(Hippo) === 'undefined') {
window.Hippo = {};
Hippo = {};
}
Hippo.augmentInternalLinks = function(id, callbackConfig) {
$('#' + id + ' a').each(function(index, element) {
var el = $(element);
var uuid = el.attr('data-uuid');
var el = $(element),
uuid = el.attr('data-uuid');
if (uuid) {
el.click(function(ev) {
ev.preventDefault();
......@@ -34,4 +34,4 @@
});
};
})();
}(jQuery));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment