Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stwkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
stwkit
Commits
4e871785
Commit
4e871785
authored
Sep 27, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made validate on location public
parent
68b327ec
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
src/components/cards.js
src/components/cards.js
+9
-9
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+9
-7
No files found.
src/components/cards.js
View file @
4e871785
...
...
@@ -156,14 +156,6 @@ var STWkit;
self
.
circleButton
.
onclick
=
function
()
{
self
.
geometryType
=
"
circle
"
;
self
.
control
.
setType
(
self
.
geometryType
);
};
self
.
polygonButton
.
disabled
=
false
;
self
.
hasPosition
=
false
;
function
validate
()
{
if
(
!
self
.
hasPosition
)
return
;
self
.
status
=
true
;
AccordionCard
.
enableNext
(
self
.
nextButton
,
true
);
(
self
.
oncallback
&&
self
.
oncallback
());
}
;
var
positionLabelGrid
=
L
.
DomUtil
.
create
(
'
div
'
,
'
uk-grid uk-margin-top
'
,
self
.
locationForm
);
var
positionlabelDiv
=
L
.
DomUtil
.
create
(
'
div
'
,
'
uk-width-1-1
'
,
positionLabelGrid
);
_super
.
prototype
.
addLabelDiv
.
call
(
_this
,
positionlabelDiv
,
"
Position
"
,
"
See more information <a style='color:#faa732;' href='help/classic/#oil-oo-position' target='_blank'>here</a>
"
);
...
...
@@ -253,7 +245,7 @@ var STWkit;
}
self
.
control
.
showTable
();
self
.
hasPosition
=
true
;
validate
();
self
.
validate
();
}
}
});
...
...
@@ -333,6 +325,14 @@ var STWkit;
LocationCard
.
prototype
.
show
=
function
()
{
_super
.
prototype
.
show
.
call
(
this
);
};
LocationCard
.
prototype
.
validate
=
function
()
{
if
(
!
this
.
hasPosition
)
return
;
this
.
status
=
true
;
AccordionCard
.
enableNext
(
this
.
nextButton
,
true
);
(
this
.
oncallback
&&
this
.
oncallback
());
};
;
LocationCard
.
prototype
.
hide
=
function
()
{
_super
.
prototype
.
hide
.
call
(
this
);
};
...
...
src/components/cards.js.map
View file @
4e871785
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
4e871785
...
...
@@ -178,12 +178,7 @@ module STWkit {
self
.
polygonButton
.
disabled
=
false
;
self
.
hasPosition
=
false
;
function
validate
()
{
if
(
!
self
.
hasPosition
)
return
;
self
.
status
=
true
;
AccordionCard
.
enableNext
(
self
.
nextButton
,
true
);
(
self
.
oncallback
&&
self
.
oncallback
());
};
var
positionLabelGrid
=
<
HTMLDivElement
>
L
.
DomUtil
.
create
(
'
div
'
,
'
uk-grid uk-margin-top
'
,
self
.
locationForm
);
var
positionlabelDiv
=
<
HTMLDivElement
>
L
.
DomUtil
.
create
(
'
div
'
,
'
uk-width-1-1
'
,
positionLabelGrid
);
...
...
@@ -276,7 +271,7 @@ module STWkit {
}
self
.
control
.
showTable
();
self
.
hasPosition
=
true
;
validate
();
self
.
validate
();
}
}
});
...
...
@@ -361,6 +356,13 @@ module STWkit {
super
.
show
();
}
public
validate
()
{
if
(
!
this
.
hasPosition
)
return
;
this
.
status
=
true
;
AccordionCard
.
enableNext
(
this
.
nextButton
,
true
);
(
this
.
oncallback
&&
this
.
oncallback
());
};
public
hide
()
{
super
.
hide
();
}
...
...
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