Commit 3ca15a9f115a2017d8c1813866c56fd494ec8281

Authored by dlstatic
1 parent 6a19d481

Add custom attribute on element to control city level show.

Showing 1 changed file with 4 additions and 0 deletions
js/ui/regionbox.js
@@ -322,7 +322,11 @@ var region = (function(){ @@ -322,7 +322,11 @@ var region = (function(){
322 if(config.forcePage) 322 if(config.forcePage)
323 methods.http(); 323 methods.http();
324 }else{ 324 }else{
  325 + if (config.view.attr('level') >= $(this).attr('level')) {
325 methods.http(); 326 methods.http();
  327 + } else {
  328 + config.view.find('.region-view').hide();
  329 + };
326 } 330 }
327 }); 331 });
328 config.view.find(".title").click(function () { 332 config.view.find(".title").click(function () {