{ "error_code": "500", "data": { "zhuang_tai": "token_no", "times": "1764538817" } }
"use strict";
/**
* @class elFinder command "view"
* Change current directory view (icons/list)
*
* @author Dmitry (dio) Levashov
**/
elFinder.prototype.commands.view = function() {
this.value = this.fm.storage('view');
this.alwaysEnabled = true;
this.updateOnSelect = false;
this.options = { ui : 'viewbutton'};
this.getstate = function() {
return 0;
}
this.exec = function() {
var value = this.fm.storage('view', this.value == 'list' ? 'icons' : 'list');
this.fm.viewchange();
this.update(void(0), value);
}
}