Omit calling markObject on the repository if same object is selected
again.
Fix jslint error
Merge pull request #1107 from npomaroli/hotfix-repomanager

Omit calling markObject on the repository if same object is selected