function removeElements(circuitid) { $.notify('Libero porta e cpe di ' + circuitid, { className: "success", globalPosition: "top center", autoHide: false } ); setTimeout( function () { $('.notifyjs-wrapper').trigger('notify-hide'); $.notify('Circuito ' + circuitid + ' liberato', { className: "success", globalPosition: "top center", autoHideDelay: 100 } ); } , 2000); location.reload(true); return false; }