Example #1
0
 AppInit.htmlReady(function () {
     var model = FindInFiles.searchModel;
     _resultsView = new SearchResultsView(model, "find-in-files-results", "find-in-files.results");
     _resultsView
         .on("replaceAll", function () {
             _finishReplaceAll(model);
         })
         .on("close", function () {
             FindInFiles.clearSearch();
         })
         .on("getNextPage", function () {
             FindInFiles.getNextPageofSearchResults().done(function () {
                 if (FindInFiles.searchModel.hasResults()) {
                     _resultsView.showNextPage();
                 }
             });
         })
         .on("getLastPage", function () {
             FindInFiles.getAllSearchResults().done(function () {
                 if (FindInFiles.searchModel.hasResults()) {
                     _resultsView.showLastPage();
                 }
             });
         });
 });
Example #2
0
 AppInit.htmlReady(function () {
     var model = FindInFiles.searchModel;
     _resultsView = new SearchResultsView(model, "find-in-files-results", "find-in-files.results");
     _resultsView
         .on("replaceAll", function () {
             _finishReplaceAll(model);
         })
         .on("close", function () {
             FindInFiles.clearSearch();
         });
 });
Example #3
0
 FindInFiles.getAllSearchResults().done(function () {
     if (FindInFiles.searchModel.hasResults()) {
         _resultsView.showLastPage();
     }
 });