Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
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
ulakbus
ulakbus-ui
Commits
ae77eb45
Commit
ae77eb45
authored
May 06, 2016
by
bahadircyildiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CHANGE rref #5257. Added validation-bypass on confirm field
parent
851fad6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
uitemplates.js
app/components/uitemplates/uitemplates.js
+3
-3
form_service.js
app/zetalib/form_service.js
+2
-2
No files found.
app/components/uitemplates/uitemplates.js
View file @
ae77eb45
...
@@ -23,13 +23,13 @@ angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService'])
...
@@ -23,13 +23,13 @@ angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService'])
$scope
.
forms
=
[
$scope
.
forms
=
[
{
{
name
:
'Deneme Form 1'
,
name
:
'Deneme Form 1'
,
form
:
[
'email'
,
'id'
,
'name'
,
'
no
valid'
],
form
:
[
'email'
,
'id'
,
'name'
,
'valid'
],
schema
:
{
schema
:
{
properties
:
{
properties
:
{
email
:
{
title
:
'email'
,
type
:
'string'
},
email
:
{
title
:
'email'
,
type
:
'string'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
name
:
{
title
:
'name'
,
type
:
'string'
},
name
:
{
title
:
'name'
,
type
:
'string'
},
novalid
:
{
type
:
"button"
,
cmd
:
"list_user2"
,
title
:
"submit without validation"
,
form_validate
:
false
}
valid
:
{
type
:
'submit'
,
cmd
:
"list_user2"
,
title
:
"submit with validation"
}
},
required
:
[
"email"
,
"id"
,
"name"
],
type
:
'object'
,
title
:
'servicetest'
},
required
:
[
"email"
,
"id"
,
"name"
],
type
:
'object'
,
title
:
'servicetest'
},
},
...
@@ -49,7 +49,7 @@ angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService'])
...
@@ -49,7 +49,7 @@ angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService'])
title
:
'Confirm Form'
,
title
:
'Confirm Form'
,
style
:
"btn-success"
,
style
:
"btn-success"
,
type
:
'confirm'
,
type
:
'confirm'
,
confirm_message
:
"kelmangeeeeeeee kakooooo kakoooo şugarkeeeeee mageee kakoooo yandan geeeelll mage kakooooo kakoooo candan geeelll magee kakoooo mo kak kamiloooo biya westeee mo kak kamiloooo biya westeee me türbayyy dicaaa vilesgeee me haraaayy dicaaaa vilesgeeee voşdikeeelll mage kakoooo kakooo yandan geeeelll mage kakooo şugarkeeeee mageeee kakooo kakooooo candan geeell magee kakoooo gel mageeeee kakooo kakoooo şugarkeeee maneee kakooo yandan geeell mageee kakooo kakoooo candan geellll mane kakoooo mo kak kamiloooo biya westeee mo kak kamiloooo biya westeee me türbayyy dicaaa vilesgeee me haraaayy dicaaaa vilesgeeee voşdikeeelll mage kakoooo kakooo yandan geeeelll mage kakooo şugarkeeeee mageeee kakooo kakooooo candan geeell magee kakoooo.
"
,
confirm_message
:
"Lorem Ipsum Dolor Sit Amet
"
,
buttons
:
[
buttons
:
[
{
text
:
"button 1"
,
style
:
"btn-warning"
,
dismiss
:
true
},
{
text
:
"button 1"
,
style
:
"btn-warning"
,
dismiss
:
true
},
{
text
:
"button 2"
,
cmd
:
"cmd1"
,
style
:
"btn-success"
},
{
text
:
"button 2"
,
cmd
:
"cmd1"
,
style
:
"btn-success"
},
...
...
app/zetalib/form_service.js
View file @
ae77eb45
...
@@ -666,14 +666,14 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -666,14 +666,14 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
});
});
},
},
openModal
:
function
(
field
){
openModal
:
function
(
field
){
var
workOnForm
=
scope
.
modalElements
?
scope
.
modalElements
.
workOnForm
:
'formgenerated'
;
if
(
!
v
.
form_validate
&&
angular
.
isDefined
(
v
.
form_validate
)){
if
(
!
v
.
form_validate
&&
angular
.
isDefined
(
v
.
form_validate
)){
this
.
modalFunction
(
field
);
this
.
modalFunction
(
field
);
}
}
else
{
else
{
scope
.
$broadcast
(
'schemaFormValidate'
);
scope
.
$broadcast
(
'schemaFormValidate'
);
if
(
scope
.
$valid
===
true
)
{
if
(
scope
[
workOnForm
].
$valid
)
{
this
.
modalFunction
(
field
);
this
.
modalFunction
(
field
);
scope
.
$broadcast
(
'disposeModal'
);
}
else
{
}
else
{
// focus to first input with validation error
// focus to first input with validation error
$timeout
(
function
()
{
$timeout
(
function
()
{
...
...
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