Skip to content

Commit 5ac1542

Browse files
committed
Updated to use edit links to edit rulesets. Clicking on rulesets will show the data for them (instead of opening the edit windows).
1 parent 44aedb9 commit 5ac1542

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/pico-engine/public/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,10 @@ <h2>Children</h2>
312312
Testing
313313
<ul class="testing-rids">
314314
{{#each testing}}
315-
<li><input type="checkbox" id="testing-{{@index}}">
316-
<label class="krlrid" for="testing-{{@index}}">{{this.rid}}</label>
317-
<a href="javascript:window.open('ruleset.html#{{this.rid}}','ruleset');void 0">edit</a>
315+
<li>
316+
<input type="checkbox" id="testing-{{@index}}">
317+
<label class="krlrid" for="testing-{{@index}}">{{this.rid}}</label>
318+
<a href="javascript:window.open('ruleset.html#{{this.rid}}','ruleset');void 0">edit</a>
318319
</li>
319320
{{/each}}
320321
<li class="legend">Legend

packages/pico-engine/public/js/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,7 @@ $.getJSON("/api/db-dump?legacy=true", function(db_dump){
223223
callback(thePicoInp);
224224
}
225225
}
226-
var displayKrl = function() {
227-
window.open("ruleset.html#"+$(this).html(),"ruleset").location.reload();
228-
}
226+
229227
var renderTab =
230228
function(event){
231229
var authenticated = event.data.authenticated;

0 commit comments

Comments
 (0)