christianbayer/image-uploader

Destroy plugin

mcunha98 opened this issue · 0 comments

The plugin haven't destroy method, so I did a simple test (works for me), but will be good if the plugin has a method destroy() native

			if (response.status == 'ok')
			{
    			$('#id').val(response.data.id);
				$('#nome').val(response.data.nome);
				$('#ordem').val(response.data.ordem);
				$('#valor').val(response.data.valor);
				$('.dropzone').empty(); <-------------------------
				setupImageUpload([{id: 1, src: response.data.imagem.url}]);
				$('#modal-editor').modal('show');
			}