Fixed issue with seriesLookup boxes not autocompleting after adding or removing a rootDir.

pull/7/merge
Mark McDowall 13 years ago
parent 2aaa23b11d
commit 1317b8fbef

@ -3,10 +3,19 @@
cache: false cache: false
}); });
bindAutoCompletes();
});
//
$('.folderLookup:not(.ui-autocomplete-input), .seriesLookup:not(.ui-autocomplete-input), .localSeriesLookup:not(.ui-autocomplete-input)').live('focus', function (event) {
bindAutoCompletes();
});
function bindAutoCompletes() {
bindFolderAutoComplete(".folderLookup"); bindFolderAutoComplete(".folderLookup");
bindSeriesAutoComplete(".seriesLookup"); bindSeriesAutoComplete(".seriesLookup");
bindLocalSeriesAutoComplete(".localSeriesLookup"); bindLocalSeriesAutoComplete(".localSeriesLookup");
}); }
function bindFolderAutoComplete(selector) { function bindFolderAutoComplete(selector) {

@ -74,7 +74,7 @@ function refreshRoot() {
$('#rootDirs').html(data); $('#rootDirs').html(data);
}); });
reloadAddNew(); reloadAddNew();
reloadExistingSeries(); reloadExistingSeries();
} }

Loading…
Cancel
Save