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
c784b09b
Commit
c784b09b
authored
Jun 10, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove not needed
parent
f8d98a0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
login.js
app/login/login.js
+0
-1
general.js
app/zlib/general.js
+7
-2
No files found.
app/login/login.js
View file @
c784b09b
...
...
@@ -74,7 +74,6 @@ login.controller('LoginCtrl', function ($scope, $q, $timeout, $http, $location,
}
];
$scope
.
onSubmit
=
function
(
form
){
console
.
log
(
FormDiff
.
get_diff
({
adad
:
2
,
adada
:
3
},{
adad
:
2
,
adada
:
4
}));
$scope
.
$broadcast
(
'schemaFormValidate'
);
if
(
form
.
$valid
){
var
credentials
=
{
email
:
form
.
email
.
$modelValue
,
password
:
form
.
password
.
$modelValue
};
...
...
app/zlib/general.js
View file @
c784b09b
...
...
@@ -4,11 +4,16 @@
//angular.module('FormDiff', [])
/**
*
service to return form diff for all form submits
*
this file contains general functions of app.
*/
var
general
=
angular
.
module
(
'general'
,
[]);
general
.
factory
(
'FormDiff'
,
function
(){
/**
* function to return diff of models of submitted form
* @type {{}}
* @params obj1, obj2
*/
var
formDiff
=
{};
formDiff
.
get_diff
=
function
(
obj1
,
obj2
)
{
var
result
=
{};
...
...
@@ -20,6 +25,6 @@ general.factory('FormDiff', function(){
result
[
key
]
=
arguments
.
callee
(
obj1
[
key
],
obj2
[
key
]);
}
return
result
;
}
}
;
return
formDiff
;
});
\ No newline at end of file
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