Skip to content

Commit

Permalink
Merge pull request #2255 from smesdaghi/master
Browse files Browse the repository at this point in the history
fixes issue 2254 where any file type that has and ext longer than 3 c…
  • Loading branch information
garnertb committed Aug 26, 2015
2 parents ed869c8 + d242c32 commit 4f946c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geonode/static/geonode/js/upload/LayerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ define(function (require, exports) {
}

if (geogig_enabled) {
geogig = $('#' + this.main.name.slice(0, -4) + '\\:geogig_toggle').is(':checked');
geogig = $('#' + this.main.name.split('.')[0] + '\\:geogig_toggle').is(':checked');
if (geogig) {
geogig_store = $('#' + this.main.name.slice(0, -4) + '\\:geogig_store').val();
geogig_store = $('#' + this.main.name.split('.')[0] + '\\:geogig_store').val();
form_data.append('geogig_store', geogig_store);
} else {
form_data.append('geogig_store', "");
}
form_data.append('geogig', geogig);
}
if (time_enabled) {
time = $('#' + this.main.name.slice(0, -4) + '-time').is(':checked');
time = $('#' + this.main.name.split('.')[0] + '-time').is(':checked');
form_data.append('time', time);
}

Expand Down Expand Up @@ -468,7 +468,7 @@ define(function (require, exports) {
$('#' + this.name + '\\:geogig_toggle').on('change', this.doGeoGigToggle);

// Add values to the geogig store dropdown and hide.
this.setupGeogigDropdown($('#' + this.main.name.slice(0, -4) + '\\:geogig_store'));
this.setupGeogigDropdown($('#' + this.main.name.split('.')[0] + '\\:geogig_store'));
$("#s2id_" + this.name + "\\:geogig_store").hide()

return li;
Expand Down

0 comments on commit 4f946c4

Please sign in to comment.