             data: data
         .then (doc) ->
             source
+
+    doPing: (cfg) ->
+        @set "source.ping", Em.run.later(@, ->
+            Em.$.ajax
+                url: cfg.href
+            doPing cfg
+        , cfg.timeout)
+
 
     sendAjax: (req) ->
         req.dataType = "json"

        model_id = req.params.openxpki.model_id

        if not source.get("navEntries.length") or model_id in @needReboot
            @sendAjax data: 
                page: "bootstrap!structure"
                baseurl: window.location.pathname



                source.set "status", doc.status
                source.set "modal", null

                if doc.ping
                    if source.get "ping"
                        Em.run.cancel source.get "ping"
                    @doPing doc.ping

                if doc.refresh
                    source.set "refresh", Em.run.later(@, ->
