//ÖNCESİ
$("#footerform").click(function () {

//SONRASI
$("body").on("click","#footerform", function () {
Yukarıdaki gibi denediniz mi?

Birde bir sayfada id yi tek bir sefer kullanmalısınız. Anladığım kadarıyla Resim Ekle butonunun id side #footerform Kapat butonunun id side #footerform bu kullanım yanlıştır.