Skip to content

Commit 923f17d

Browse files
authored
Merge pull request #72 from ronysilvati/patch-2
New feacture: Import same csv file again;
2 parents 479f7b4 + 740dbcd commit 923f17d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dist/angular-csv-import.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ csvImport.directive('ngCsvImport', function() {
2626
mdInputClass: '@?',
2727
mdButtonTitle: '@?',
2828
mdSvgIcon: '@?',
29-
uploadButtonLabel: '='
29+
uploadButtonLabel: '=',
30+
lockImportSameFile:'=?'
3031
},
3132
template: function(element, attrs) {
3233
var material = angular.isDefined(attrs.material);
@@ -143,6 +144,10 @@ csvImport.directive('ngCsvImport', function() {
143144
});
144145
}
145146
}
147+
148+
if(!scope.lockImportSameFile){
149+
angular.element(document).find('.ng-csv-import.ng-isolate-scope input[type="file"]')[0].value = null;
150+
}
146151
});
147152

148153
var csvToJSON = function(content) {

0 commit comments

Comments
 (0)