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
5e960ce3
Commit
5e960ce3
authored
Feb 15, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX msgbox in every view rfix #5073
parent
7166c2aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
crud.html
app/components/crud/templates/crud.html
+1
-0
form_service.js
app/zetalib/form_service.js
+1
-10
No files found.
app/components/crud/templates/crud.html
View file @
5e960ce3
<div
class=
"container-fluid"
>
<div
ng-class=
"{'col-md-8': meta.allow_filters}"
>
<msgbox
ng-show=
"msgbox"
></msgbox>
<h3>
{{ schema.title }}
</h3>
<crud-show-directive
ng-if=
"object"
></crud-show-directive>
<crud-form-directive
ng-if=
"forms"
></crud-form-directive>
...
...
app/zetalib/form_service.js
View file @
5e960ce3
...
...
@@ -793,16 +793,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
then
(
function
(
res
)
{
generator
.
button_switch
(
true
);
if
(
res
.
data
.
client_cmd
)
{
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
}
if
(
res
.
data
.
msgbox
)
{
scope
.
msgbox
=
res
.
data
.
msgbox
;
var
newElement
=
$compile
(
"<msgbox></msgbox>"
)(
scope
);
// this is the default action, which is removing page items and reload page with msgbox
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
children
().
remove
();
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
append
(
newElement
);
}
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
});
};
///**
...
...
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