mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
demos/index: quick fix for #3810
This commit is contained in:
parent
b6bf540c0d
commit
274ff534db
@ -164,7 +164,9 @@
|
||||
data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
|
||||
data = data.replace(/((href|src)=["'])(?!(http|#))/ig, "$1" + directory + "/");
|
||||
|
||||
$('#demo-style').remove();
|
||||
$('#demo-frame').empty().html(data);
|
||||
$('#demo-frame style').clone().appendTo('head').attr('id','demo-style');
|
||||
$('#demo-link a').attr('href', path);
|
||||
updateDemoNotes();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user