forked from GitHub/gf-core
RGL browser: escape html when printing code (by using .text() instead of .html())
This commit is contained in:
@@ -98,7 +98,7 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
var setCode = function(code) {
|
||||
$('#code pre').html(code);
|
||||
$('#code pre').text(code);
|
||||
prettyPrint();
|
||||
}
|
||||
var updateScopeCount = function(){
|
||||
@@ -350,7 +350,7 @@ $(document).ready(function() {
|
||||
var code = (e.keyCode ? e.keyCode : e.which);
|
||||
if(code == 13) { // Enter
|
||||
runFilter();
|
||||
}
|
||||
}
|
||||
});
|
||||
$("#clear").click(function(){
|
||||
$("#search")
|
||||
@@ -376,21 +376,21 @@ $(document).ready(function() {
|
||||
function delayed () {
|
||||
if (!execAsap)
|
||||
func.apply(obj, args);
|
||||
timeout = null;
|
||||
timeout = null;
|
||||
};
|
||||
|
||||
|
||||
if (timeout)
|
||||
clearTimeout(timeout);
|
||||
else if (execAsap)
|
||||
func.apply(obj, args);
|
||||
|
||||
timeout = setTimeout(delayed, threshold || 100);
|
||||
|
||||
timeout = setTimeout(delayed, threshold || 100);
|
||||
};
|
||||
}
|
||||
// smartresize
|
||||
// smartresize
|
||||
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
|
||||
})(jQuery,'smartresize');
|
||||
|
||||
|
||||
// usage:
|
||||
$(window).smartresize(function() {
|
||||
recalculateHeights();
|
||||
|
||||
Reference in New Issue
Block a user