MCPcopy Create free account
hub / github.com/TruthHun/BookStack / copyValues

Function copyValues

static/js/printThis.js:81–87  ·  view source on GitHub ↗
(origin, clone, elementSelector)

Source from the content-addressed store, hash-verified

79
80 // Copies values from origin to clone for passed in elementSelector
81 function copyValues(origin, clone, elementSelector) {
82 var $originalElements = origin.find(elementSelector);
83
84 clone.find(elementSelector).each(function(index, item) {
85 $(item).val($originalElements.eq(index).val());
86 });
87 }
88
89 var opt;
90 $.fn.printThis = function(options) {

Callers 1

appendBodyFunction · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected