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
6dcf7631
Commit
6dcf7631
authored
Jun 30, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle empty model data
parent
4f82975e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
staff_controller.js
app/components/staff/staff_controller.js
+3
-2
student_controller.js
app/components/student/student_controller.js
+1
-1
No files found.
app/components/staff/staff_controller.js
View file @
6dcf7631
...
...
@@ -11,8 +11,9 @@
var
staff
=
angular
.
module
(
'zaerp.staff.add'
,[
'ngRoute'
,
'schemaForm'
,
'formService'
]);
/* StaffCtrl is a controller
which provide a form with form generator.
/**
* StaffCtrl is a controller
* which provide a form with form generator.
*/
staff
.
controller
(
'StaffCtrl'
,
function
(
$scope
,
$http
,
$log
,
Generator
,
$routeParams
){
...
...
app/components/student/student_controller.js
View file @
6dcf7631
...
...
@@ -23,7 +23,7 @@ student.controller('StudentAddEditCtrl', function($scope, $http, $log, Generator
$scope
.
schema
=
d
.
schema
;
$scope
.
form
=
d
.
form
;
// model is the init data of the form or in edit templates
$scope
.
model
=
d
.
model
;
$scope
.
model
=
d
.
model
?
d
.
model
:
{}
;
$scope
.
initialModel
=
angular
.
copy
(
d
.
model
);
// for email validation add asyncvalidator
$scope
.
form
[
0
].
$asyncValidators
=
Generator
.
asyncValidators
;
...
...
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