Skip to content

Commit 7dcf450

Browse files
committed
readd submit.omni(), revert update time back to 1sec
1 parent 653293e commit 7dcf450

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (s *Server) init() error {
106106
// log.Printf("torrents #%d files #%d", len(s.state.Torrents), len(s.state.Downloads.Children))
107107
s.state.Unlock()
108108
s.state.Update()
109-
time.Sleep(2 * time.Second)
109+
time.Sleep(1 * time.Second)
110110
}
111111
}()
112112

static/files/js/omni-controller.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ app.controller("OmniController", function($scope, $rootScope, storage, api, sear
122122
$scope.magnet.trackers.push({ v: "" });
123123
};
124124

125+
$scope.submitOmni = function() {
126+
if($scope.mode.search) {
127+
$scope.submitSearch();
128+
} else {
129+
$scope.submitTorrent();
130+
}
131+
};
132+
125133
$scope.submitTorrent = function() {
126134
if($scope.mode.torrent) {
127135
api.url($scope.inputs.omni);

0 commit comments

Comments
 (0)