Bug #2483

settings.createInt ignores min & max limit

Added by Fredrik Lundmark about 8 years ago. Updated about 8 years ago.

Status:FixedStart date:01/12/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Ecmascript & Duktape
Target version:4.10
Found in version:4.9.46.g5134a.dirty Platform:PS3

Description

If type in plugin.json is set to ecmascript, settings.createInt goes past the set limits with the slider.

Changing to javascript in type will restore the slider functionality so it works as expected.

settings.createInt("entriesPerCategory", "Entries per category on front page", 10, 5, 20, 1, "", function(v) {
service.entriesPerCategory = v;
});

Associated revisions

Revision 270939a4
Added by Andreas Smas about 8 years ago

ecmascript: Fix broken integer-setting range clamping

Fixes #2483

History

#1 Updated by Leonid Protasov about 8 years ago

  • Category changed from API to Ecmascript & Duktape
  • Target version set to 4.10

#2 Updated by Fredrik Lundmark about 8 years ago

Edit: It does not matter if you use apiversion: 1 or apiversion: 2.

#3 Updated by Andreas Smas about 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF