Commit 5bfa9357 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent ea7ee33d
......@@ -15,8 +15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
<div id="img_dialog" title=""></div>
<div id="table_dialog" title=""></div>
<input type="hidden" id="analyse_name" value="{$analyse.name}"/>
{block name=description}
......@@ -81,3 +79,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
</div>
</div>
{* Modal initialization *}
{* Global tmpl *}
<div id="ng6modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modal-label-tmpl" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="modal-label-tmpl">Modal header</h3>
</div>
<div id="modal-body-tmpl" class="modal-body"></div>
<div id="modal-foot-tmpl" class="modal-footer"></div>
</div>
{* Error No raw selected modal *}
<div id="ng6modal-DTnoraw" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-DTnoraw" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Error</h3>
</div>
<div class="modal-body">
<div class='tx-nG6-pi1-error'>No raw selected, please select a raw to access this fonctionality.</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
</div>
</div>
\ No newline at end of file
......@@ -32,16 +32,14 @@ $(function () {
$(".duplication-profile-btn").click(function() {
if ($(":checked[id^=chk_sample_]").size() == 0) {
$("#user_information_dialog").dialog("option", "title", "Error");
$("#user_information_dialog").html("<div class='tx-nG6-pi1-error'>No raw selected, please select a raw to access this fonctionality.</div>").dialog("open");
var buttons = {};
buttons["Ok"] = function(){ $(this).dialog("close"); }
$("#user_information_dialog").dialog('option', 'buttons', buttons);
$("#ng6modal-DTnoraw").modal();
} else {
$("#img_dialog").dialog("option", "title", "nG6 - " + $("#analyse_name").val());
$("#img_dialog").dialog("option", "width", 850);
$("#img_dialog").dialog("option", "height", 450);
$("#img_dialog").html('<div id="highcharts_container"></div>').dialog("open");
// First confirm with the user if he wants to hide
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="highcharts_container"></div>');
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#ng6modal").css('width', '750px');
$("#ng6modal").css('margin-left', '-375px');
var categories = new Array(),
series = new Array();
for (var i=1; i<=DUPLICATION_LIMIT; i++) {
......@@ -92,6 +90,8 @@ $(function () {
},
series: series
});
chart.setSize(720, 450);
$("#ng6modal").modal();
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment