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
38f00832
Commit
38f00832
authored
Aug 08, 2016
by
Vladimir Baranov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/fix-schema-order' into develop
parents
4198fb54
dd9c03a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
nodeTable.html
app/components/crud/templates/nodeTable.html
+7
-14
socket.js
app/zetalib/socket.js
+6
-3
No files found.
app/components/crud/templates/nodeTable.html
View file @
38f00832
...
...
@@ -19,10 +19,8 @@
</label>
</th>
<th
scope=
"row"
style=
"text-align:center"
>
#
</th>
<th
ng-repeat=
"(key,value) in node.items[0] track by $index"
ng-if=
"key!=='idx' && node.schema.properties[key]"
>
<span
ng-if=
"value.verbose_name"
>
{{ value.verbose_name }}
</span>
<span
ng-if=
"!value.verbose_name"
>
{{node.schema.properties[key]['title']|| key}}
</span>
<th
ng-repeat=
"propName in node.form"
ng-init=
"prop = node.schema.properties[propName]"
>
<span
ng-if=
"!value.verbose_name"
>
{{prop.title||prop.name}}
</span>
</th>
<th
ng-if=
"meta.allow_actions!==false"
>
İşlem
</th>
</tr>
...
...
@@ -44,25 +42,20 @@
</td>
</tr>
<tr
ng-repeat=
"listnodemodel in node.items track by $index"
ng-init=
"outerIndex=$index"
ng-if=
"node.schema.formType=='ListNode'"
>
<tr
ng-repeat=
"listnodemodel in node.items track by $index"
ng-init=
"outerIndex=$index"
ng-if=
"node.schema.formType=='ListNode'"
>
<td
ng-if=
"meta.allow_selection===true"
width=
"60"
>
<label>
<input
type=
"checkbox"
style=
"zoom:1.5; margin:5px 0 0 8px;"
>
</label>
</td>
<th
scope=
"row"
style=
"text-align:center"
>
{{$index+1}}
</th>
<td
ng-repeat=
"(k, v) in listnodemodel track by $index"
ng-init=
"innerIndex=$index"
ng-if=
"k!=='idx' && node.schema.properties[k]"
>
<span
ng-if=
"!node.schema.inline_edit || node.schema.inline_edit.indexOf(k) < 0"
>
{{ v.unicode || v }}
</span>
<td
ng-repeat=
"propName in node.form"
ng-init=
"k = propName; v = listnodemodel[propName]; inline = node.schema.inline_edit && node.schema.inline_edit.indexOf(k) > -1"
>
<span
ng-if=
"!inline"
>
{{ v.unicode || v }}
</span>
<!--<input type="{{node.schema.properties[k].type}}"-->
<!--ng-if="node.schema.inline_edit.indexOf(k) > -1"-->
<!--ng-model="node.model[outerIndex][k]"-->
<!--ng-change="nodeModelChange(this)">-->
<ng-include
src=
"'components/crud/templates/inline_edit.html'"
ng-if=
"node.schema.inline_edit.indexOf(k) > -1"
></ng-include>
<ng-include
src=
"'components/crud/templates/inline_edit.html'"
ng-if=
"inline"
></ng-include>
</td>
<td
ng-if=
"meta.allow_actions!==false"
>
<div
ng-hide=
"meta.object_actions.length > 0"
>
...
...
@@ -80,4 +73,4 @@
</tbody>
</table>
</div>
\ No newline at end of file
</div>
app/zetalib/socket.js
View file @
38f00832
...
...
@@ -116,7 +116,9 @@ angular.module('ulakbus')
delete
wsOps
.
callbacks
[
data
.
callbackID
];
callback
.
resolve
(
data
);
}
else
{
$log
.
info
(
"Data without callback: %o"
,
data
);
if
(
data
.
msg
!=
'pong'
)
{
$log
.
info
(
"Data without callback: %o"
,
data
);
};
// if pong in msg reduce pingCounter
if
(
msg_data
.
msg
===
'pong'
)
{
pingCounter
-=
1
;
...
...
@@ -181,8 +183,9 @@ angular.module('ulakbus')
msg_data
.
cmd
=
'error'
;
}
do_action
(
msg_data
,
msg_data
.
cmd
);
$log
.
info
(
"MESSAGE:"
,
event
,
"Data:"
,
JSON
.
parse
(
event
.
data
));
if
(
msg_data
.
msg
!=
"pong"
){
$log
.
info
(
"MESSAGE:"
,
event
,
"Data:"
,
msg_data
);
}
};
wsOps
.
onError
=
function
(
evt
)
{
$log
.
error
(
"ERROR :: "
+
evt
);
...
...
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