Skip to content

Commit

Permalink
WV-1535 No more double palette on orbit track click
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Gunnoe committed Feb 18, 2016
1 parent 6005bb2 commit 3e64bef
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions web/js/layers/wv.layers.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
visible[layer.id] = true;
});

model.events
.on("add", onLayerAdded)
.on("remove", onLayerRemoved);

models.proj.events.on("select", drawDefaultPage );

//Create tiles
Expand Down Expand Up @@ -296,8 +292,9 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
$wrapper.click( function( e ){
e.stopPropagation();
var $checkbox = $( this )
.find( 'input#setting-' + layer.id )
.iCheck('toggle');
.find( 'input#setting-' + layer.id );

$checkbox.iCheck('toggle');
});

});
Expand Down Expand Up @@ -637,18 +634,6 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
model.remove( decodeURIComponent( $( this ).val() ) );
};

var onLayerAdded = function(layer) {
var $element = $( self.selector + " [data-layer='" +
wv.util.jqueryEscape(layer.id) + "']");
$element.iCheck("check");
};

var onLayerRemoved = function(layer) {
var $element = $( self.selector + " [data-layer='" +
wv.util.jqueryEscape(layer.id) + "']");
$element.iCheck("uncheck");
};

var unfocusInput = function(){
if(!wv.util.browser.small){
$('#layers-search-input').focus();
Expand Down

0 comments on commit 3e64bef

Please sign in to comment.