Skip to content

Commit

Permalink
Update RefWidget to use modelName, not label, in the popups.
Browse files Browse the repository at this point in the history
  • Loading branch information
leweaver committed Feb 24, 2014
1 parent e3e751f commit 237200f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function refLink() {
.insertAfter($this)
.click(function () {
var id = $this.val() || 'new';
var refType = $this.data('ref').toLocaleLowerCase();
var refType = $this.data('ref');
var url = [root, '/model/', refType, '/document/', id, '?_dialog=yes'].join('');
window.showDialog($this, url);
});
Expand Down

0 comments on commit 237200f

Please sign in to comment.