Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
stwkit
Commits
f515e249
Commit
f515e249
authored
Sep 28, 2017
by
Tomas Pettersson
🏸
Browse files
mandatoryTxt
parent
c28fd155
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
f515e249
...
...
@@ -319,7 +319,7 @@ var STWkit;
AccordionCard
.
enableNext
(
self
.
nextButton
,
false
);
self
.
nextButton
.
onclick
=
function
()
{
if
(
!
AccordionCard
.
isEnabled
(
self
.
nextButton
))
{
AccordionCard
.
warningMsg
(
'
Mandatory fields missing
'
,
'
Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.
'
);
AccordionCard
.
warningMsg
(
'
Mandatory fields missing
'
,
self
.
mandatoryTxt
()
);
return
;
}
if
(
self
.
forcingBoundary
)
...
...
@@ -331,6 +331,9 @@ var STWkit;
});
return
_this
;
}
LocationCard
.
prototype
.
mandatoryTxt
=
function
()
{
return
'
Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.
'
;
};
LocationCard
.
prototype
.
show
=
function
()
{
_super
.
prototype
.
show
.
call
(
this
);
};
...
...
src/components/cards.js.map
View file @
f515e249
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
f515e249
...
...
@@ -348,8 +348,7 @@ module STWkit {
self
.
nextButton
.
onclick
=
function
()
{
if
(
!
AccordionCard
.
isEnabled
(
self
.
nextButton
))
{
AccordionCard
.
warningMsg
(
'
Mandatory fields missing
'
,
'
Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.
'
);
AccordionCard
.
warningMsg
(
'
Mandatory fields missing
'
,
self
.
mandatoryTxt
());
return
;
}
if
(
self
.
forcingBoundary
)
self
.
forcingBoundary
.
hide
();
...
...
@@ -360,6 +359,10 @@ module STWkit {
});
}
public
mandatoryTxt
()
{
return
'
Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.
'
;
}
public
show
()
{
super
.
show
();
...
...
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