Skip to content

Commit 0164215

Browse files
authored
Merge pull request #116 from lucianobustos/master
Adding title attribute support.
2 parents c4562fb + a55f164 commit 0164215

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dist/jquery.loadTemplate.js

+4
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@
318318
processElements("data-alt", template, data, settings, function ($elem, value) {
319319
$elem.attr("alt", applyFormatters($elem, value, "alt", settings));
320320
});
321+
322+
processElements("data-title", template, data, settings, function ($elem, value) {
323+
$elem.attr("title", applyFormatters($elem, value, "title", settings));
324+
});
321325

322326
processElements("data-id", template, data, settings, function ($elem, value) {
323327
$elem.attr("id", applyFormatters($elem, value, "id", settings));

dist/jquery.loadTemplate.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)