Commit f83612a1 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 3da11014
......@@ -103,4 +103,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
</div>
</div>
{* Error only 1 raw modal *}
<div id="ng6modal-1raw" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-1raw" 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'>Only one row should be selected 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
......@@ -38,7 +38,7 @@ $(function () {
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#ng6modal").modal();
} else {
$("#ng6modal-DTnoraw").modal();
$("#ng6modal-1raw").modal();
}
});
......
......@@ -65,4 +65,13 @@ $(function () {
"bJQueryUI": true
});
});
$('.single-selection-btn').click(function() {
if ($(":checked[id^=chk_sample_]").size() == 0) {
$("#ng6modal-DTnoraw").modal();
} else if ($(":checked[id^=chk_sample_]").size() > 1) {
$("#ng6modal-1raw").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