Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
79eed8c2
Commit
79eed8c2
authored
7 years ago
by
pratik24mac
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2543: UI - edit classification window has update button disabled
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
0adfa8f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
AddTimezoneItemView.js
dashboardv2/public/js/views/tag/AddTimezoneItemView.js
+6
-1
No files found.
dashboardv2/public/js/views/tag/AddTimezoneItemView.js
View file @
79eed8c2
...
...
@@ -118,6 +118,7 @@ define(['require',
_
.
extend
(
endDateObj
,
{
"minDate"
:
that
.
ui
.
startTime
.
val
()
})
that
.
endDateInitialize
(
endDateObj
);
that
.
model
.
set
(
'startTime'
,
that
.
ui
.
startTime
.
val
());
that
.
buttonActive
({
isButtonActive
:
true
});
}).
on
(
'cancel.daterangepicker'
,
function
(
ev
,
picker
)
{
that
.
ui
.
startTime
.
val
(
''
);
delete
endDateObj
.
minDate
;
...
...
@@ -125,6 +126,7 @@ define(['require',
that
.
model
.
set
(
'startTime'
,
that
.
ui
.
startTime
.
val
());
});
this
.
endDateInitialize
(
endDateObj
);
this
.
buttonActive
({
isButtonActive
:
true
});
},
buttonActive
:
function
(
option
)
{
var
that
=
this
;
...
...
@@ -134,13 +136,15 @@ define(['require',
}
},
onCloseButton
:
function
()
{
if
(
this
.
tagModel
)
{
this
.
buttonActive
({
isButtonActive
:
true
});
}
if
(
this
.
parentView
.
collection
.
models
.
length
>
0
)
{
this
.
model
.
destroy
();
}
if
(
this
.
parentView
.
collection
.
models
.
length
<=
0
)
{
this
.
parentView
.
ui
.
timeZoneDiv
.
hide
();
this
.
parentView
.
ui
.
checkTimeZone
.
prop
(
'checked'
,
false
);
this
.
parentView
.
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
true
);
}
},
endDateInitialize
:
function
(
option
)
{
...
...
@@ -148,6 +152,7 @@ define(['require',
this
.
ui
.
endTime
.
daterangepicker
(
option
).
on
(
'apply.daterangepicker'
,
function
(
ev
,
picker
)
{
that
.
ui
.
endTime
.
val
(
picker
.
startDate
.
format
(
'YYYY/MM/DD hh:mm:ss'
));
that
.
model
.
set
(
'endTime'
,
that
.
ui
.
endTime
.
val
());
that
.
buttonActive
({
isButtonActive
:
true
});
}).
on
(
'cancel.daterangepicker'
,
function
(
ev
,
picker
)
{
that
.
ui
.
endTime
.
val
(
''
);
that
.
model
.
set
(
'endTime'
,
that
.
ui
.
endTime
.
val
());
...
...
This diff is collapsed.
Click to expand it.
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