Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e399c328
Commit
e399c328
authored
Jul 10, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused upload directive
parent
7687150a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
32 deletions
+1
-32
js/directives.js
+1
-32
No files found.
js/directives.js
View file @
e399c328
...
...
@@ -49,38 +49,7 @@ angular.module('kibana.directives', [])
}
};
})
// Is this even used anymore? I don't think is is
.
directive
(
'upload'
,
function
(
timer
,
dashboard
){
return
{
restrict
:
'A'
,
link
:
function
(
scope
,
elem
,
attrs
)
{
function
file_selected
(
evt
)
{
var
files
=
evt
.
target
.
files
;
// FileList object
// files is a FileList of File objects. List some properties.
var
output
=
[];
for
(
var
i
=
0
,
f
;
f
=
files
[
i
];
i
++
)
{
var
reader
=
new
FileReader
();
reader
.
onload
=
(
function
(
theFile
)
{
return
function
(
e
)
{
dashboard
.
dash_load
(
JSON
.
parse
(
e
.
target
.
result
))
scope
.
$apply
();
};
})(
f
);
reader
.
readAsText
(
f
);
}
}
// Check for the various File API support.
if
(
window
.
File
&&
window
.
FileReader
&&
window
.
FileList
&&
window
.
Blob
)
{
// Something
document
.
getElementById
(
'upload'
).
addEventListener
(
'change'
,
file_selected
,
false
);
}
else
{
alert
(
'Sorry, the HTML5 File APIs are not fully supported in this browser.'
);
}
}
}
}).
directive
(
'ngModelOnblur'
,
function
()
{
.
directive
(
'ngModelOnblur'
,
function
()
{
return
{
restrict
:
'A'
,
require
:
'ngModel'
,
...
...
Write
Preview
Markdown
is supported
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