Commit 5cb0436e62e529a8f98fdf119cecdac9c6ccb663
1 parent
3ca15a9f
Fix it.
Showing
1 changed file
with
7 additions
and
3 deletions
js/ui/regionbox.js
... | ... | @@ -322,10 +322,14 @@ var region = (function(){ |
322 | 322 | if(config.forcePage) |
323 | 323 | methods.http(); |
324 | 324 | }else{ |
325 | - if (config.view.attr('level') >= $(this).attr('level')) { | |
326 | - methods.http(); | |
325 | + if (config.view.attr('level')) { | |
326 | + if (config.view.attr('level') >= $(this).attr('level')) { | |
327 | + methods.http(); | |
328 | + } else { | |
329 | + config.view.find('.region-view').hide(); | |
330 | + }; | |
327 | 331 | } else { |
328 | - config.view.find('.region-view').hide(); | |
332 | + methods.http(); | |
329 | 333 | }; |
330 | 334 | } |
331 | 335 | }); | ... | ... |