|
|
@@ -84,8 +84,8 @@ from desktop.views import _ko
|
|
|
</div>
|
|
|
<div style="margin-top: 20px" data-bind="visible: fileEntry.canModify() && ! hasErrors() && ! loading()">
|
|
|
<div class="input-append" style="font-size: inherit">
|
|
|
- <div id="menu"></div>
|
|
|
- <input id="userSearchAutocomp" placeholder="${_('Type a username or a group name')}" type="text" data-bind="autocomplete: { source: shareAutocompleteUserSource.bind($data), itemTemplate: 'user-search-autocomp-item', noMatchTemplate: 'user-search-autocomp-no-match', valueObservable: searchInput, showSpinner: true, classPrefix: 'hue-', onEnter: onShareAutocompleteUserEnter.bind($data), appendTo: $('#menu') }, clearable: { value: searchInput, textInput: searchInput }" class="ui-autocomplete-input" autocomplete="off" style="width: 420px">
|
|
|
+ <div id="menu"></div>
|
|
|
+ <input id="userSearchAutocomp" placeholder="${_('Type a username or a group name')}" type="text" data-bind="autocomplete: { source: shareAutocompleteUserSource.bind($data), itemTemplate: 'user-search-autocomp-item', noMatchTemplate: 'user-search-autocomp-no-match', valueObservable: searchInput, showSpinner: true, classPrefix: 'hue-', onEnter: onShareAutocompleteUserEnter.bind($data), appendTo: $('#menu') }, clearable: { value: searchInput, textInput: searchInput }" class="ui-autocomplete-input" autocomplete="off" style="width: 420px">
|
|
|
<div class="btn-group" style="overflow:visible">
|
|
|
<a id="documentShareAddBtn" class="btn" data-bind="click: function () { onShareAutocompleteUserEnter() }"><span data-bind="text: selectedPerm() == 'read' ? '${ _('Read') }' : '${ _('Modify') }'"></span></a>
|
|
|
<a id="documentShareCaret" class="btn dropdown-toggle" data-toggle="dropdown">
|
|
|
@@ -238,12 +238,7 @@ from desktop.views import _ko
|
|
|
<div class="container-fluid">
|
|
|
<div class="pull-right" style="padding-right: 10px">
|
|
|
<div class="doc-browser-folder-actions" data-bind="visible: activeEntry && activeEntry() && !activeEntry().hasErrors()">
|
|
|
- <!-- ko if: searchVisible -->
|
|
|
- <div class="doc-browser-action doc-browser-search-container pull-left"><input class="clearable" type="text" placeholder="${ _('Search for name, description, etc...') }" data-bind="hasFocus: searchFocus, textInput: searchQuery, clearable: searchQuery"></div>
|
|
|
- <!-- /ko -->
|
|
|
<!-- ko with: activeEntry -->
|
|
|
- <div class="doc-browser-action doc-browser-type-filter margin-right-10 pull-left" data-bind="component: { name: 'hue-drop-down', params: { value: serverTypeFilter, entries: DOCUMENT_TYPES, linkTitle: '${ _ko('Type filter') }' } }"></div>
|
|
|
- <a class="btn margin-right-20" title="${_('Search')}" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, toggle: $parent.searchVisible, click: function () { $parent.searchFocus($parent.searchVisible()) }, css: { 'blue' : ($parent.searchVisible() || $parent.searchQuery()) }"><i class="fa fa-fw fa-search"></i></a>
|
|
|
<!-- ko if: app === 'documents' -->
|
|
|
<div class="inline">
|
|
|
<span class="dropdown">
|
|
|
@@ -724,12 +719,8 @@ from desktop.views import _ko
|
|
|
self.activeEntry().search(query);
|
|
|
});
|
|
|
|
|
|
- self.searchVisible = ko.observable(false);
|
|
|
- self.searchFocus = ko.observable(false);
|
|
|
-
|
|
|
huePubSub.subscribe('file.browser.directory.opened', function () {
|
|
|
self.searchQuery('');
|
|
|
- self.searchVisible(false);
|
|
|
$('.tooltip').hide();
|
|
|
});
|
|
|
|