fixed bug with getting back to directory where file was removed

This commit is contained in:
coderaiser 2013-04-21 10:14:23 -04:00
parent 4cb12ee8a9
commit 128bf64e00
3 changed files with 13 additions and 2 deletions

View file

@ -87,7 +87,11 @@ is pressed and current file is directory.
* Fixed header of api fs GET.
* Fixed bug with sending response on query other then json on /fs url.
* Fixed bug with sending response on
query other then json on /fs url.
* Fixed bug with getting back to
directory where file was removed.
2012.03.01, v0.1.9

View file

@ -35,6 +35,7 @@
- Стиль выделения в Опере.
- Заголовок выдачи REST-фукнции fs метода GET.
- Отправка данных в ответ на запрос отличный от ?json в пути /url.
- Возвращение в папку, из которой был удален файл.
**Обновлены:**
- jquery до версии v2.0.0

View file

@ -496,9 +496,15 @@ var CloudCommander, Util, DOM = {}, CloudFunc;
if(lCurrent || lSelected)
DOM.RESTfull.delete(lUrl, lSelected, function(){
if(n > 1)
DOM.deleteSelected(lFiles);
DOM.deleteSelected(lFiles);
else
DOM.deleteCurrent(lCurrent);
var lDir = CloudFunc.removeLastSlash(
DOM.getCurrentDirPath()
);
DOM.Cache.remove(lDir);
}, lQuery);
return lCurrent;