mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-14 19:42:49 +00:00
Added files
This commit is contained in:
13
mongoui/mongoui-master/ui/connectionAlert/index.js
Normal file
13
mongoui/mongoui-master/ui/connectionAlert/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
exports.connect = function() {
|
||||
model = this.model
|
||||
// Hide the reconnect link for a second after clicking it
|
||||
model.set('hideReconnect', true)
|
||||
setTimeout(function() {
|
||||
model.set('hideReconnect', false)
|
||||
}, 1000)
|
||||
model.socket.socket.connect()
|
||||
}
|
||||
|
||||
exports.reload = function() {
|
||||
window.location.reload()
|
||||
}
|
||||
Reference in New Issue
Block a user