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
0eaa8929
Commit
0eaa8929
authored
May 27, 2016
by
Bahadir Can Yildiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CHANGE rref #5296. Reverted Changes, made buttons static
parent
1e7fe815
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
23 deletions
+6
-23
listnodeModalContent.html
app/shared/templates/listnodeModalContent.html
+2
-1
form_service.js
app/zetalib/form_service.js
+4
-22
No files found.
app/shared/templates/listnodeModalContent.html
View file @
0eaa8929
...
...
@@ -3,5 +3,6 @@
<form
name=
"modalForm"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
modal-form-locator
></form>
</div>
<div
class=
"modal-footer"
>
<button
ng-repeat=
"b in schema.footerButtons"
type=
"{{b.type}}"
class=
"btn {{b.style || 'btn-default'}}"
ng-click=
"onNodeBtnClk(b)"
>
{{b.text}}
</button>
<button
type=
"submit"
class=
"btn btn-primary"
ng-click=
"onNodeSubmit()"
>
Tamam
</button>
<button
type=
"button"
class=
"btn btn-warning"
ng-click=
"cancel()"
>
İptal
</button>
</div>
\ No newline at end of file
app/zetalib/form_service.js
View file @
0eaa8929
...
...
@@ -1387,31 +1387,13 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
}
};
$scope
.
onNodeBtnClk
=
function
(
button
)
{
if
(
!
button
.
form_validate
&&
angular
.
isDefined
(
button
.
form_validate
)){
$uibModalInstance
.
close
(
$scope
);
}
else
{
$scope
.
onNodeSubmit
=
function
()
{
$scope
.
$broadcast
(
'schemaFormValidate'
);
if
(
$scope
.
modalForm
.
$valid
)
{
$uibModalInstance
.
close
(
$scope
);
}
else
{
// focus to first input with validation error
$timeout
(
function
()
{
var
firsterror
=
angular
.
element
(
document
.
querySelectorAll
(
'input.ng-invalid'
))[
0
];
firsterror
.
focus
();
});
}
}
};
// $scope.onNodeSubmit = function () {
// $scope.$broadcast('schemaFormValidate');
// if ($scope.modalForm.$valid) {
// $uibModalInstance.close($scope);
// }
// };
$scope
.
cancel
=
function
()
{
$uibModalInstance
.
dismiss
(
'cancel'
);
};
...
...
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