view/js/provincias.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 40
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 36
c 0
b 0
f 0
dl 0
loc 40
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
/*
2
 * This file is part of FacturaScripts
3
 * Copyright (C) 2015-2016  Carlos Garcia Gomez  [email protected]
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU Lesser General Public License as
7
 * published by the Free Software Foundation, either version 3 of the
8
 * License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
var provincia_list = [
20
    {value: 'Azua - Azua de Compostela'},
21
    {value: 'Bahoruco - Neiba'},
22
    {value: 'Barahona - Santa Cruz de Barahona'},
23
    {value: 'Dajabón - Dajabón'},
24
    {value: 'Distrito Nacional - Santo Domingo'},
25
    {value: 'Duarte - San Francisco de Macorís'},
26
    {value: 'Elías Piña - Comendador'},
27
    {value: 'El Seibo - Santa Cruz del Seibo'},
28
    {value: 'Espaillat - Moca'},
29
    {value: 'Hato Mayor - Hato Mayor del Rey'},
30
    {value: 'Hermanas Mirabal - Salcedo'},
31
    {value: 'Independencia - Jimaní'},
32
    {value: 'La Altagracia - Salvaleón de Higüey'},
33
    {value: 'La Romana - La Romana'},
34
    {value: 'La Vega - Concepción de la Vega'},
35
    {value: 'María Trinidad Sánchez - Nagua'},
36
    {value: 'Monseñor Nouel - Bonao'},
37
    {value: 'Monte Cristi - San Fernando de Monte Cristi'},
38
    {value: 'Monte Plata - Monte Plata'},
39
    {value: 'Pedernales - Pedernales'},
40
    {value: 'Peravia - Baní'},
41
    {value: 'Puerto Plata - San Felipe de Puerto Plata'},
42
    {value: 'Samaná - Santa Bárbara de Samaná'},
43
    {value: 'Sánchez Ramírez - Cotuí'},
44
    {value: 'San Cristóbal - San Cristóbal'},
45
    {value: 'San José de Ocoa - San José de Ocoa'},
46
    {value: 'San Juan - San Juan de la Maguana'},
47
    {value: 'San Pedro de Macorís - San Pedro de Macorís'},
48
    {value: 'Santiago - Santiago de los Caballeros'},
49
    {value: 'Santiago Rodríguez - Sabaneta'},
50
    {value: 'Santo Domingo - Santo Domingo Este'},
51
    {value: 'Valverde - Mao'},
52
];
53
54
$(document).ready(function() {
55
   $("#ac_provincia, #ac_provincia2").autocomplete({
56
      lookup: provincia_list,
57
   });
58
});
59