Skip to content

Commit c70e264

Browse files
committed
fixed lookup img
1 parent 2ebc1cc commit c70e264

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

genericadmin/static/genericadmin/js/genericadmin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@
107107
var that = this,
108108
url = this.getLookupUrl(this.cID),
109109
id = 'lookup_' + this.getFkId(),
110-
link = '<a class="related-lookup" id="' + id + '" href="' + url + '">&nbsp;</a>';
111-
110+
link = '<a class="related-lookup" id="' + id + '" href="' + url + '">';
111+
112+
link = link + '<img src="' + this.admin_media_url.replace(/\/?$/, '/') + 'img/selector-search.gif" style="cursor: pointer; margin-left: 5px; margin-right: 10px;" width="16" height="16" alt="Lookup"></a>';
112113
link = link + '<strong id="lookup_text_'+ this.getFkId() +'" margin-left: 5px"><a target="_new" href="#"></a><span></span></strong>';
113114

114115
// insert link html after input element

0 commit comments

Comments
 (0)