Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aflitos, Saulo Alves
ibrowser
Commits
77eb7755
Commit
77eb7755
authored
Jun 04, 2015
by
Aflitos, Saulo Alves
Browse files
fixed base64 bug; added controller request error
parent
398ab7eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
routes.py
View file @
77eb7755
import
glob
import
sys
import
os
import
base64
from
operator
import
itemgetter
...
...
static/js/controller.js
View file @
77eb7755
...
...
@@ -130,7 +130,7 @@ var mainController = function ( $scope, $http, mySharedService ) {
'
end
'
:
'
End Position
'
,
'
num_unities
'
:
'
Number of components
'
,
'
num_snps
'
:
'
Number of SNPs
'
,
'
name
'
:
'
Fragment Name
'
,
'
name
'
:
'
Fragment Name
'
}
};
...
...
@@ -221,13 +221,22 @@ var mainController = function ( $scope, $http, mySharedService ) {
$http
.
get
(
'
api/report/
'
+
$scope
.
databaseQry
+
'
/
'
+
$scope
.
chromosomeQry
+
'
/
'
+
$scope
.
geneQry
)
.
success
(
function
(
data
)
{
function
(
data
,
status
,
header
,
config
)
{
console
.
log
(
'
report success %o status %o header %o config %o
'
,
data
,
status
,
header
,
config
);
//console.log('report %o', data);
$scope
.
report
=
data
;
$scope
.
loadReport
(
data
);
$scope
.
working
=
false
;
}
);
)
.
error
(
function
(
data
,
status
,
header
,
config
)
{
console
.
log
(
'
report error %o status %o header %o config %o
'
,
data
,
status
,
header
,
config
);
$scope
.
working
=
false
;
alert
(
'
error loading report
'
);
}
)
;
};
$scope
.
getData
=
function
()
{
...
...
@@ -531,7 +540,21 @@ var mainController = function ( $scope, $http, mySharedService ) {
$scope
.
chromosomeQry
=
$scope
.
chromosome
;
$scope
.
geneQry
=
gene
;
$scope
.
showGeneQry
();
}
else
{
console
.
log
(
"
not able to show gene
"
);
alert
(
"
not able to show gene
"
);
console
.
log
(
'
databases
'
,
$scope
.
databases
);
console
.
log
(
'
database
'
,
$scope
.
database
);
console
.
log
(
'
chromosomes
'
,
$scope
.
chromosomes
);
console
.
log
(
'
chromosome
'
,
$scope
.
chromosome
);
console
.
log
(
'
genes
'
,
$scope
.
genes
);
console
.
log
(
'
gene
'
,
gene
);
console
.
log
(
'
valid database
'
,
isInList
(
$scope
.
databases
,
$scope
.
database
)
);
console
.
log
(
'
valid chromosome
'
,
isInList
(
$scope
.
chromosomes
,
$scope
.
chromosome
)
);
console
.
log
(
'
valid gene
'
,
isInList
(
$scope
.
genes
,
gene
)
);
}
};
$scope
.
showHelp
=
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment