This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var addLink = $('<button type="button" class="btn btn-info add"><i class="icon icon-plus icon-white"></i></button>'); | |
var deleteLink = $('<button type="button" class="btn btn-danger remove"><i class="icon icon-trash icon-white"></i></button>'); | |
function addLinkClick(e) { | |
e.preventDefault(); | |
var collection = $(this).closest(".collection-allow-add"); | |
var index = 1+ collection.data("index"); |