Showing
3 changed files
with
6 additions
and
18 deletions
@@ -182,6 +182,10 @@ grid.prototype = { | @@ -182,6 +182,10 @@ grid.prototype = { | ||
182 | g.foot.hide(); | 182 | g.foot.hide(); |
183 | }else{ | 183 | }else{ |
184 | g.foot.show(); | 184 | g.foot.show(); |
185 | + if(p.size){ | ||
186 | + $(".t_size",g.foot).val(p.size); | ||
187 | + } | ||
188 | + | ||
185 | if(p.nopage){ | 189 | if(p.nopage){ |
186 | $(".t_size",g.foot).hide(); | 190 | $(".t_size",g.foot).hide(); |
187 | } | 191 | } |
@@ -193,6 +193,7 @@ var t = new common.tab2({ | @@ -193,6 +193,7 @@ var t = new common.tab2({ | ||
193 | 193 | ||
194 | var g = new common.grid({ | 194 | var g = new common.grid({ |
195 | el: '#basicTable', | 195 | el: '#basicTable', |
196 | + usepagesize:true, | ||
196 | parms: function() { | 197 | parms: function() { |
197 | var select = tabTree.getAddress(); | 198 | var select = tabTree.getAddress(); |
198 | 199 |
@@ -220,24 +220,7 @@ $('.floatnav').on('mouseenter', function() { | @@ -220,24 +220,7 @@ $('.floatnav').on('mouseenter', function() { | ||
220 | if (location.hash) { | 220 | if (location.hash) { |
221 | var hashPos = location.hash.substring(1); | 221 | var hashPos = location.hash.substring(1); |
222 | setTimeout(function() { | 222 | setTimeout(function() { |
223 | - $('.floatnav').find('li[name="' + hashPos + '"]').trigger('click'); | 223 | + $('.floatnav').find('li[data-pos="' + hashPos + '"]').trigger('click'); |
224 | }, 500); | 224 | }, 500); |
225 | 225 | ||
226 | } | 226 | } |
227 | - | ||
228 | -try { | ||
229 | - var status=window.NETSALEDATA.baseProductInfo.baseProduct.status; | ||
230 | - if(!([8,2,3,4].indexOf(status)>-1)){ | ||
231 | - $(".floatnav li").each(function() { | ||
232 | - var name = $.trim($(this).data('pos')), | ||
233 | - that = this; | ||
234 | - if (name == location.hash.replace(/^#/, '')) { | ||
235 | - setTimeout(function() { | ||
236 | - $(that).click(); | ||
237 | - }, 500); | ||
238 | - } | ||
239 | - }); | ||
240 | - } | ||
241 | -} catch (e) { | ||
242 | - | ||
243 | -} |
-
Please register or login to post a comment