ryansuitposungkono / openjs-grid

Automatically exported from code.google.com/p/openjs-grid
0 stars 0 forks source link

Linked data cells ignore linkTarget setting #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. put a "link" on any cell and specify linkTarget : "_self" or whatever
2. the generated code is always  target="undefined" (even on your page)
3.

What is the expected output? What do you see instead?
I expected to be able to open the target on the same page, it always
open a new window

What version of the product are you using? On what operating system?

1.8 whith Win7,

Original issue reported on code.google.com by rothhir...@gmail.com on 26 Feb 2012 at 10:49

GoogleCodeExporter commented 9 years ago
I got the correct expected behaviour by replacing 

var link = "<a target='"+opts.linkTarget+"' href='"+opts.link+"'>"+cell+"</a>";

with

var link = "<a target='"+user_opts.linkTarget+"' 
href='"+opts.link+"'>"+cell+"</a>";

al line 306 of grid.js.

Original comment by rothhir...@gmail.com on 9 Mar 2012 at 5:55