vidpush/app/assets/javascripts/campaigns.js

9 lines
232 B
JavaScript

/**
* Created by tsouza on 4/25/14.
*/
/* Prevent the user from removing the last videolisting. Requires one at all times.*/
$("body").on('click',"a.remove_fields",function() {
return $(".videolisting_field").length > 1;
});