Files
streamline-emr/docker/streamline-src/public/js/diagnosis/create.js
T
alec.turner a424394109 Build modified streamline images
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
2024-03-10 16:17:50 -07:00

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--;
});
});