Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






imgpath – erroneous "/" appended to path in grid.formedit.js

No Tags
UserPost

14:19
23/09/2008


Renso

PA

Member

posts 118

Tony, my image path on jqGrid is set to:

imgpath: '../../Content/StyleSheets/Screen/jQuery/basic/images',

error on line 930 on grid.formedit.js:

var clicon = p.imgpath ? p.imgpath+'/'+p.closeicon : p.closeicon;

but when I trace grid.formedit.js, line 930 does the folliowing:

p.imgparth = "../../Content/StyleSheets/Screen/jQuery/basic/images/"

so somewhere in the call to createModal the imgpath is suffixed with an "/" and your code on 930 adds an additional "/", so it generates:

clicon = "../../Content/StyleSheets/Screen/jQuery/basic/images//ico-close.gif"

is this a bug or do I need to set something else on my side?


05:09
24/09/2008


tony

Sofia, Bulgaria

Moderator

posts 7043

Hello,

You are right. Thank you. Now I will remove the "/" form creating the

modal and if there is a private imgpath this should end with "/"

Thank you.

Best Regards

Tony

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

62 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9662

Posts: 28951

Membership:

There are 10357 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1167

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7043 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information