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
0586dbaf
Commit
0586dbaf
authored
Aug 03, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(save_as): imporved save as dialog, now auto focus, and enter key to submit works, closes #2426
parent
dd6a34e6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
public/app/features/dashboard/partials/saveDashboardAs.html
+1
-1
public/app/features/dashboard/saveDashboardAsCtrl.js
+6
-0
public/css/less/submenu.less
+1
-0
No files found.
public/app/features/dashboard/partials/saveDashboardAs.html
View file @
0586dbaf
...
...
@@ -14,7 +14,7 @@
<div
class=
"text-center"
>
<h4>
New title
</h4>
<input
type=
"text"
class=
"input input-fluid"
ng-model=
"clone.title"
>
<input
type=
"text"
class=
"input input-fluid"
ng-model=
"clone.title"
give-focus=
"clone"
ng-keydown=
"keyDown($event)"
>
<br>
<br>
...
...
public/app/features/dashboard/saveDashboardAsCtrl.js
View file @
0586dbaf
...
...
@@ -25,6 +25,12 @@ function (angular) {
});
}
$scope
.
keyDown
=
function
(
evt
)
{
if
(
evt
.
keyCode
===
13
)
{
$scope
.
saveClone
();
}
};
$scope
.
saveClone
=
function
()
{
saveDashboard
({
overwrite
:
false
}).
then
(
null
,
function
(
err
)
{
if
(
err
.
data
&&
err
.
data
.
status
===
"name-exists"
)
{
...
...
public/css/less/submenu.less
View file @
0586dbaf
...
...
@@ -17,6 +17,7 @@
label.cr1 {
margin-left: 5px;
}
padding: 8px 7px;
}
.submenu-item {
...
...
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