template.conf.sit_javaee6.mockup.js.mockup.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sit-ad Show documentation
Show all versions of sit-ad Show documentation
SIToolkit for Application Develepment
$(function() {
$("table.datatable").each(function() {
var tbody = $(this).find("tbody");
for(var i = 0; i < 2; i++) {
var newTr = tbody.find("tr").clone();
tbody.append(newTr);
newTr.find(".documented").removeClass("documented");
}
});
var num = 1;
$("#logo").css("cursor", "pointer")
.click(function() {
if (num == 1) {
$(".documented").each(function() {
if ($(this).attr("id").match(/.*[2-9]$/)) {
return;
}
$(this).attr("title", "(" + num++ + ")")
.tooltip({
position : {my: "left top", at: "right bottom" },
tooltipClass : "numberingTooltip"
})
.tooltip("open");
});
} else {
$(".numberingTooltip").toggle();
}
});
});