+ filex.clearSelection();
+ });
+ });
+ }).wrap('<div style="margin-right: 80px"></div>');
+
+ $('#id_stage_in').before(function() {
+ var target = this;
+ return gridftpButton.clone().click(function() {
+ $('#select-btn').off().click(function() {
+ var path = filex.host + '/' + filex.path.full() + '/';
+
+ _.each(filex.selectedFiles(), function(item) {
+ var file = fullPath(path, item);
+ target.selectize.addOption({value: file, text: file});
+ target.selectize.addItem(file);
+ });
+ target.selectize.refreshItems();
+
+ $('#gridftp').modal('hide');
+ filex.clearSelection();