Changeset 6762 for luci/trunk/libs/web/luasrc/cbi.lua
- Timestamp:
- 01/20/11 01:01:55 (2 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/web/luasrc/cbi.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/web/luasrc/cbi.lua
r6608 r6762 51 51 CREATE_PREFIX = "cbi.cts." 52 52 REMOVE_PREFIX = "cbi.rts." 53 RESORT_PREFIX = "cbi.sts." 53 54 54 55 -- Loads a CBI map from given file, creating an environment and returns it … … 1122 1123 end 1123 1124 1125 if self.sortable then 1126 local stval = RESORT_PREFIX .. self.config .. "." .. self.sectiontype 1127 local order = self.map:formvalue(stval) 1128 if order and #order > 0 then 1129 local sid 1130 local num = 0 1131 for sid in util.imatch(order) do 1132 self.map.uci:reorder(self.config, sid, num) 1133 num = num + 1 1134 end 1135 self.changed = (num > 0) 1136 end 1137 end 1138 1124 1139 if created or self.changed then 1125 1140 self:push_events()
