Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed May 2, 2017
1 parent 2397874 commit 14c1dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/controllers/database-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ dbModule.controller("BrowseController", ['$scope', '$routeParams', '$route', '$l


var handleResult = function (data) {

if (data.result) {

var warnings = data.warnings;
Expand Down
7 changes: 4 additions & 3 deletions src/services/database-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,16 @@ database.factory('CommandApi', ["$http", "$resource", "Notification", "Spinner",
if (contentType == 'text/csv') {
var query = params.text.trim();
var config = {headers: {"accept": contentType}};


$http.post(text, query, config).success(function (data) {
var time = ((new Date().getTime() - startTime) / 1000);
var records = data.result ? data.result.length : "";
var form = $('<a style="display: none;" type="hidden" id="linkdownload" href="data:application/octet-stream;charset=utf-8;base64,' + Base64.encode(data) + '">asdasdasasd</a>');
var form = $('<a style="display: none;" type="hidden" id="linkdownload" href="data:application/octet-stream;charset=utf-8;base64,' + Base64.Base64.encode(data) + '">asdasdasasd</a>');
$('#download').append(form);



query = query.replace(/ /gi, '');
query = query.replace(/[^\w\s]/gi, '');
query = query.replace(/^\*/gi, '');
Expand All @@ -658,8 +661,6 @@ database.factory('CommandApi', ["$http", "$resource", "Notification", "Spinner",
Notification.push({content: data});
if (error) error(data);
});
;

}

else {
Expand Down

0 comments on commit 14c1dc2

Please sign in to comment.