// requires DropZone ª toMarkdown if (typeof window.jQuery === 'undefined') { throw new Error('yavsc-remote-fs script requires jQuery'); } (function ($) { $.widget('psc.yarfs', { options: { fsnurl: '/api/fs' }, root: null, rmAlert: null, flist: null, selection: [], dirBar: null, openDir: function (sub) { var _this = this; this.root = sub; var owner = this.element.data('owner'); this.selection = []; this.dirBar.empty(); $('').click(function() { _this.openDir(null); }).appendTo(this.dirBar); var npath = null; if (_this.root) { var dnames = _this.root.split('/'); $.each(dnames, function () { var part = this; if (npath == null) npath = part; else npath = npath + '/' + part; $('