mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
RGL Browser: added show local option
This commit is contained in:
@@ -100,13 +100,9 @@ ol.linenums
|
||||
color:#eee;
|
||||
margin:0 0 0 1em;
|
||||
}
|
||||
ol.linenums li
|
||||
{
|
||||
border-left: 1px solid #CCC;
|
||||
}
|
||||
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8
|
||||
{
|
||||
list-style-type:none
|
||||
/* list-style-type:none */
|
||||
}
|
||||
li.L0,li.L2,li.L4,li.L6,li.L8
|
||||
{
|
||||
|
||||
@@ -32,8 +32,9 @@
|
||||
<span id="scope_count">0</span> items
|
||||
<input type="submit" id="submit" value="Filter" />
|
||||
<input type="reset" id="clear" value="Clear" />
|
||||
<input type="checkbox" id="case_sensitive" checked="checked" />
|
||||
<label for="case_sensitive">Case sensitive?</label>
|
||||
<input type="checkbox" id="case_sensitive" checked="checked" /><label for="case_sensitive">Case sensitive?</label>
|
||||
<input type="radio" name="show" id="show_all" checked="checked" /><label for="show_all">Show all</label>
|
||||
<input type="radio" name="show" id="show_local" /><label for="show_local">Local only</label>
|
||||
<table id="scope_list"></table>
|
||||
</div>
|
||||
<div id="code" class="panel code">
|
||||
|
||||
@@ -231,8 +231,9 @@ $(document).ready(function() {
|
||||
|
||||
// Custom selector
|
||||
$.expr[':'].match = function(a,b,c) {
|
||||
var obj = $(a);
|
||||
var needle = c[3];
|
||||
var haystack = $(a).attr('name');
|
||||
var haystack = obj.attr('name');
|
||||
if (haystack == undefined)
|
||||
return false;
|
||||
if ($("#case_sensitive").is(":checked"))
|
||||
@@ -251,6 +252,9 @@ $(document).ready(function() {
|
||||
} else {
|
||||
$("#scope_list tr").show();
|
||||
}
|
||||
if ($("#show_local").is(":checked") ) {
|
||||
$("#scope_list tr.indir").hide();
|
||||
}
|
||||
} catch (error) {
|
||||
alert(error.message);
|
||||
}
|
||||
@@ -276,4 +280,6 @@ $(document).ready(function() {
|
||||
runfilter();
|
||||
});
|
||||
$("#case_sensitive").change(runfilter);
|
||||
$("#show_all").change(runfilter);
|
||||
$("#show_local").change(runfilter);
|
||||
});
|
||||
|
||||
@@ -143,8 +143,8 @@ dt
|
||||
}
|
||||
footer
|
||||
{
|
||||
padding: 0.5em;
|
||||
padding-left: 0.5em;
|
||||
border-top: 1px solid #999;
|
||||
margin-top: 2em;
|
||||
margin-top: 1em;
|
||||
color:#333;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user