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
0a1109c7
Commit
0a1109c7
authored
Nov 11, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table tag fixes
parent
b3b8e2bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
msgbox.html
app/shared/templates/directives/msgbox.html
+1
-1
form_service.js
app/zetalib/forms/form_service.js
+1
-6
No files found.
app/shared/templates/directives/msgbox.html
View file @
0a1109c7
<div
class=
""
>
<div
class=
"
col-lg-4
"
>
<div
class=
"panel panel-info"
>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
{{msgbox.title}}
{{msgbox.title}}
...
...
app/zetalib/forms/form_service.js
View file @
0a1109c7
...
@@ -61,8 +61,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
...
@@ -61,8 +61,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
}
}
});
});
debugger
;
angular
.
forEach
(
scope
.
schema
.
properties
,
function
(
v
,
k
)
{
angular
.
forEach
(
scope
.
schema
.
properties
,
function
(
v
,
k
)
{
// generically change _id fields model value
// generically change _id fields model value
...
@@ -340,7 +338,7 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
...
@@ -340,7 +338,7 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
var
data
=
{
var
data
=
{
"form"
:
$scope
.
model
,
"form"
:
$scope
.
model
,
"cmd"
:
$scope
.
form_params
.
cmd
,
"cmd"
:
$scope
.
form_params
.
cmd
,
"subcmd"
:
"do_list"
,
//
"subcmd": "do_list",
"model"
:
$scope
.
form_params
.
model
,
"model"
:
$scope
.
form_params
.
model
,
"token"
:
$scope
.
token
"token"
:
$scope
.
token
};
};
...
@@ -350,8 +348,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
...
@@ -350,8 +348,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
//data.form = get_diff;
//data.form = get_diff;
}
}
//debugger;
return
$http
.
post
(
generator
.
makeUrl
(
$scope
),
data
)
return
$http
.
post
(
generator
.
makeUrl
(
$scope
),
data
)
.
success
(
function
(
data
)
{
.
success
(
function
(
data
)
{
// if return data consists forms key then trigger redraw the form with updated data
// if return data consists forms key then trigger redraw the form with updated data
...
@@ -372,7 +368,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
...
@@ -372,7 +368,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
if
(
data
.
msgbox
)
{
if
(
data
.
msgbox
)
{
$scope
.
msgbox
=
data
.
msgbox
;
$scope
.
msgbox
=
data
.
msgbox
;
var
newElement
=
$compile
(
"<msgbox ></msgbox>"
)(
$scope
);
var
newElement
=
$compile
(
"<msgbox ></msgbox>"
)(
$scope
);
//debugger;
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
children
().
remove
();
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
children
().
remove
();
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
append
(
newElement
);
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
append
(
newElement
);
}
}
...
...
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