PHP Classes

File: vendors/gentelella/vendors/jqvmap/src/JQVMap/deselect.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/jqvmap/src/JQVMap/deselect.js   Download  
File: vendors/gentelella/vendors/jqvmap/src/JQVMap/deselect.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 621 bytes
 

Contents

Class file image Download
JQVMap.prototype.deselect = function (cc, path) { cc = cc.toLowerCase(); path = path || jQuery('#' + this.getCountryId(cc))[0]; if (this.isSelected(cc)) { this.selectedRegions.splice(this.selectIndex(cc), 1); jQuery(this.container).trigger('regionDeselect.jqvmap', [cc]); path.currentFillColor = path.getOriginalFill(); path.setFill(path.getOriginalFill()); } else { for (var key in this.countries) { this.selectedRegions.splice(this.selectedRegions.indexOf(key), 1); this.countries[key].currentFillColor = this.color; this.countries[key].setFill(this.color); } } };