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
b4e9bf32
Commit
b4e9bf32
authored
Sep 22, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.0.3.1
node and listnode add and edit screen fixes +
parent
93335551
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
crud_controller.js
app/components/crud/crud_controller.js
+13
-8
directives.js
app/shared/directives.js
+1
-1
app.js
dist/app.js
+2
-2
components.js
dist/bower_components/components.js
+1
-1
No files found.
app/components/crud/crud_controller.js
View file @
b4e9bf32
...
...
@@ -38,7 +38,7 @@ crud.controller('CRUDAddEditCtrl', function ($scope, $rootScope, $location, $htt
if
(
form
.
$valid
)
{
Generator
.
submit
(
$scope
)
.
success
(
function
(
data
){
$location
.
path
(
"/crud"
);
$location
.
path
(
$scope
.
form_params
.
model
).
search
(
data
);
})
.
error
(
function
(
data
){
$scope
.
message
=
data
.
title
;
...
...
@@ -55,13 +55,18 @@ crud.controller('CRUDAddEditCtrl', function ($scope, $rootScope, $location, $htt
crud
.
controller
(
'CRUDListCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
$scope
.
url
=
'crud'
;
$scope
.
form_params
=
{
"model"
:
$routeParams
.
model
};
// call generator's get_list func
Generator
.
get_list
(
$scope
)
.
then
(
function
(
res
)
{
debugger
;
$scope
.
nobjects
=
res
.
data
.
nobjects
;
$scope
.
model
=
$routeParams
.
model
;
});
if
(
$routeParams
.
nobjects
){
$scope
.
nobjects
=
$routeParams
.
nobjects
;
$scope
.
model
=
$routeParams
.
model
;
}
else
{
// call generator's get_list func
Generator
.
get_list
(
$scope
)
.
then
(
function
(
res
)
{
$scope
.
nobjects
=
res
.
data
.
nobjects
;
$scope
.
model
=
$routeParams
.
model
;
});
}
});
/**
...
...
app/shared/directives.js
View file @
b4e9bf32
...
...
@@ -90,7 +90,7 @@ app.directive('sidebar', ['$location', function () {
// todo: change to $watch to init
$timeout
(
function
(){
$
(
'#side-menu'
).
metisMenu
();
},
5
00
);
},
20
00
);
$scope
.
selectedMenu
=
$location
.
path
();
$scope
.
collapseVar
=
0
;
...
...
dist/app.js
View file @
b4e9bf32
This diff is collapsed.
Click to expand it.
dist/bower_components/components.js
View file @
b4e9bf32
This diff is collapsed.
Click to expand it.
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