
add_link.js.html
About this file
This file contains a script that handles the link form validation upon clicking the next button. Required fields of the form are given the data-parsley-required attribute and an associated max character length.
A custom validator is implemented to check that the link url is valid.
Code Check Report
Documentation drawn from source code
$(document).ready(function () {
$(".link-control .link-divs").each(function (e) {
$("#link-next-1").click(function () {
success: function (data) {
$("#link-next-2").click(function () {
success: function (data) {
$("#link-prev-1").click(function () {
$("#link-prev-2").click(function () {
$("#add-link-form").submit(function () {
window.Parsley.addValidator("urlstrict", function (value) {
$("#link-title").keyup(function () {
$("#link-url").keyup(function () {