Sha256: caeb87426eb9907110b89ef15b84f3e331e2052674c7741d434a1a9542fba8ac
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
import SaveManager from 'curation_concerns/file_manager/save_manager' import SortManager from 'curation_concerns/file_manager/sorting' import {FileManagerMember} from 'curation_concerns/file_manager/member' export default class FileManager { constructor() { this.save_manager = this.initialize_save_manager() this.sorting() this.save_affix() this.member_tracking() } initialize_save_manager() { return(new SaveManager) } sorting() { window.new_sort_manager = new SortManager(this.save_manager) } save_affix() { let tools = $("#file-manager-tools") if(tools.length > 0) { tools.affix({ offset: { top: $("#file-manager-tools .actions").offset().top, bottom: function() { return $("#file-manager-extra-tools").outerHeight(true) + $("footer").outerHeight(true) } } }) } } member_tracking() { let sm = this.save_manager $("li[data-reorder-id]").each(function(index, element) { var manager_member = new FileManagerMember($(element), sm) $(element).data("file_manager_member", manager_member) }) } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.4.0 | app/assets/javascripts/curation_concerns/file_manager.es6 |