mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
24 lines
746 B
JavaScript
Executable File
Vendored
24 lines
746 B
JavaScript
Executable File
Vendored
$(document).ready(function () {
|
|
var max_fields = 4; //maximum reference area/name divs allowed
|
|
var x = 1; //initial reference area/name div count
|
|
|
|
$(".add_field").on("click", function (e) {
|
|
e.preventDefault();
|
|
if (x < max_fields) {
|
|
x++;
|
|
var copy = $('.copy').clone();
|
|
copy.attr("class", 'row input_fields_wrap');
|
|
copy.attr("id", 'copy' + x);
|
|
copy.append('<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a>');
|
|
copy.insertAfter('.copy');
|
|
}
|
|
});
|
|
|
|
$(".input_fields_wrap").on("click", ".remove_field", function (e) {
|
|
e.preventDefault();
|
|
$(this).parent('div').remove();
|
|
x--;
|
|
});
|
|
|
|
});
|