mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 02:55:03 -05:00
demos/index: quick fix for #3810
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user