Sha256: 6f33c76569e4ae195e9f011a30b0594cf570723f8b53397a2b01865d39c5819e
Contents?: true
Size: 365 Bytes
Versions: 2
Compression:
Stored size: 365 Bytes
Contents
// Add error indicators to tabs Trestle.ready(function() { $('.tab-pane').each(function() { var errorCount = $(this).find('.has-error').length; if (errorCount > 0) { var indicator = $("<span>").addClass('label label-danger label-pill').text(errorCount); $(".nav-tabs a[href='#" + $(this).attr('id') + "']").append(indicator); } }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.5 | app/assets/javascripts/trestle/_errors.js |
trestle-0.8.4 | app/assets/javascripts/trestle/_errors.js |