ayende/ravendb — pull request #844 by maximburyak (2014-04-29 15:13:40+00:00)
Title: issue fixed: RavenDB-2190

when the index is deleted, it is removed before the server reports whether the delete operation has succeeded, and if index deletion fails, the index is still removed from the list. Also, there is no visual indication to what is going on (deletion is in progress, etc.)

solution: jquery $.when was called in the wrong way. when receiving array of promises/deferreds, $.when.apply syntax should be used.
also, forced reload of all indexes if all/part of delete operations were failed