diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-13 23:14:02 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-13 23:21:59 +0300 |
| commit | 774999834f73a5c8e43d7829de058d2a95351593 (patch) | |
| tree | c2b86af9ad0e4777344ee77e4a910005a309d91a | |
| parent | cdd7873063a14c3b991f053a2d789137c55d85fe (diff) | |
client/activity: move root element to index.html
| -rw-r--r-- | res/domain-fragment.d/default/template.d/index.html | 1 | ||||
| -rw-r--r-- | src/client/view/activity.js | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/res/domain-fragment.d/default/template.d/index.html b/res/domain-fragment.d/default/template.d/index.html index 3a2a9658..9fea17bb 100644 --- a/res/domain-fragment.d/default/template.d/index.html +++ b/res/domain-fragment.d/default/template.d/index.html @@ -78,6 +78,7 @@ var RZ_VERSION = '{% include "version.txt" %}'; <div contentEditable="true" tabindex="2" class="input input-bar" id="textanalyser" placeholder="Add nodes or links" autofocus ></div> <button tabindex="-1" id="btn_add"></button> <div id="input-suggestion" class="suggestion" style="display: none"></div> + <div class="activity-root-div"></div> </div> </div> <div class="info-container" style="display:none"> diff --git a/src/client/view/activity.js b/src/client/view/activity.js index dba272bc..f0488244 100644 --- a/src/client/view/activity.js +++ b/src/client/view/activity.js @@ -189,9 +189,7 @@ function update_ago() function init(_graph, _graph_view, _graph_view_element) { incomingActivityBus.onValue(appendActivity); - activity_element = $('<div class="activity-root-div"></div>'); - graph_view_element = _graph_view_element; - graph_view_element.append(activity_element); + activity_element = $('.activity-root-div'); graph_view = _graph_view; graph = _graph; setInterval(update_ago, MINUTE_IN_MSEC); |
