|
|
@@ -161,8 +161,7 @@
|
161
|
161
|
<b>Options:</b>
|
162
|
162
|
<pre><%= Utils.pretty_jsonify @agent.options || {} %></pre>
|
163
|
163
|
</p>
|
164
|
|
- <button type="submit" class="btn btn-default" id="target">Reveal Memory</button>
|
165
|
|
- <button type="submit" class="btn btn-default" id="target1">Hide Memory</button>
|
|
164
|
+ <button type="submit" class="btn btn-default" id="target">Hide or Reveal Memory</button>
|
166
|
165
|
<div id="memorytoggle" class="hidden">
|
167
|
166
|
<p id="memory" data-agent-id="<%= @agent.id %>">
|
168
|
167
|
<b>Memory:</b>
|
|
|
@@ -182,10 +181,6 @@
|
182
|
181
|
|
183
|
182
|
<%= javascript_tag do %>
|
184
|
183
|
$( "#target" ).click(function() {
|
185
|
|
- $("#memorytoggle").removeClass("hidden");
|
186
|
|
-});
|
187
|
|
-
|
188
|
|
-$( "#target1" ).click(function() {
|
189
|
|
- $("#memorytoggle").addClass("hidden");
|
|
184
|
+ $("#memorytoggle").toggleClass("hidden");
|
190
|
185
|
});
|
191
|
186
|
<% end %>
|