Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#4800 closed feature (plugin)

More selector to compare attribute

Reported by: waruichingu Owned by: john
Priority: low Milestone:
Component: selector Version: 1.3.2
Keywords: selector Cc:
Blocked by: Blocking:

Description

Patch for jquery-1.3.2.js

2026,2027d2025
<                 type === "%=" ?
<                 value.indexOf(check) < 0 :
2042,2043d2039
<                 type === ">=" ? parseInt(value, 10) >= parseInt(check, 10) :
<                 type === "<=" ? parseInt(value, 10) <= parseInt(check, 10) :    
  1. Not equal
  2. greater than
  3. lesser than

Change History (5)

comment:1 Changed 9 years ago by waruichingu

comment:2 Changed 9 years ago by SlexAxton

Keywords: selector added
Milestone: 1.41.5
Priority: minorlow
Status: newopen

This seems like something that wouldn't necessarily be that feasible, since num doesn't have to be an integer. This seems better as a custom addition rather than a built in selector. I'll add it to the feature request list, since it is a valid request though.

The jsfiddle example is a bit useless, since nothing is actually implemented, but I suppose it shows your point.

comment:3 Changed 9 years ago by waruichingu

Yeah, a custom selector seems to be a good choice. Thank you very much.

PS: If not, i have to patch every version upgrade.

comment:4 Changed 9 years ago by john

Resolution: plugin
Status: openclosed

Yeah, I'm leaning towards plugin, as well.

comment:5 Changed 8 years ago by waruichingu

I have checked the 1.6 code, it doesn't allow me to have a custom selector. Can you direct me? Thanks.

Note: See TracTickets for help on using tickets.