Skip to content
Snippets Groups Projects
Commit b8c0c365 authored by alvaro's avatar alvaro
Browse files

Merge remote-tracking branch 'upstream/master'

parents 10d553cd 4bd9c178
No related branches found
No related tags found
No related merge requests found
......@@ -167,8 +167,10 @@ class AdminModule extends abstractModule{
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>
<h3>Embed this code</h3>
</div>
<div id='embed-body' class='modal-body'>
<div class='modal-body'>
<form class='form-inline'><fieldset><label>Width:</label> <input type='text' class='input-small embed-size' id='embed-width' value='600px'/> <label>Height:</label> <input type='text' class='input-small embed-size' id='embed-height' value='400px'/></fieldset></form>
<div id='embed-body'>
</div>
</div>
<div class='modal-footer'>
<a href='#' class='btn' data-dismiss='modal'>Close</a>
......
doc/examples/originalComponents/static/admin/img/wordcloud.png

129 KiB | W: | H:

doc/examples/originalComponents/static/admin/img/wordcloud.png

46.7 KiB | W: | H:

doc/examples/originalComponents/static/admin/img/wordcloud.png
doc/examples/originalComponents/static/admin/img/wordcloud.png
doc/examples/originalComponents/static/admin/img/wordcloud.png
doc/examples/originalComponents/static/admin/img/wordcloud.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -112,6 +112,15 @@ $(document).ready(function(){
}
});
function updateEmbeddableCode(e){
var url = $("#embed-button").attr('data-url').replace("../", home);
var width = $("#embed-width").val(),
height = $("#embed-height").val();
var code = "&lt;iframe src='"+url+"' style='overflow-x: hidden;overflow-y: hidden;' frameborder='0' width='"+width+"' height='"+height+"'&gt;&lt;/iframe&gt;";
$("#embed-body").html(code);
$("#embed-box").modal('show');
}
function executePost(url, data, message){
$.ajax({
type: 'POST',
......@@ -380,11 +389,8 @@ $(document).ready(function(){
}
});
$("#embed-button").on('click', function(e){
var url = $(this).attr('data-url').replace("../", home);
var code = "&lt;iframe src='"+url+"' style='overflow-x: hidden;overflow-y: hidden;' frameborder='0' width='600px' height='400px'&gt;&lt;/iframe&gt;";
$("#embed-body").html(code);
$("#embed-box").modal('show');
})
$("#embed-button").on('click', updateEmbeddableCode);
$(".embed-size").on('keyup', updateEmbeddableCode);
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment