<divclass="item"ng-repeat="(index, attachment) in signatureBook.attachments"ng-click="changeRightViewer(index)"ng-class="{'panelSelectedThumbnail': index == signatureBook.rightSelectedThumbnail}">
<divclass="item"ng-repeat="(index, attachment) in signatureBook.attachments"ng-click="changeRightViewer(index)"ng-class="{'panelSelectedThumbnail': index == signatureBook.rightSelectedThumbnail}">