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
e718c1fc
Commit
e718c1fc
authored
Aug 18, 2016
by
Vladimir Baranov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build
parent
edad2093
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
Gruntfile.js
Gruntfile.js
+6
-3
messaging.js
app/components/messaging/messaging.js
+1
-3
main.html
app/main.html
+0
-2
form_service.js
app/zetalib/form_service.js
+2
-3
No files found.
Gruntfile.js
View file @
e718c1fc
...
...
@@ -142,8 +142,10 @@ module.exports = function (grunt) {
"app/components/version/version.js"
,
"app/components/version/interpolate-filter.js"
,
"app/components/version/version-directive.js"
,
"app/components/messaging/*.js"
"app/components/messaging/messaging_service.js"
,
"app/components/messaging/messaging.js"
],
nonull
:
true
,
dest
:
'dist/app.js'
},
components
:
{
...
...
@@ -199,7 +201,8 @@ module.exports = function (grunt) {
'app/shared/directives.js'
,
'app/components/**/*controller.js'
,
'app/components/**/*service.js'
,
'app/components/messaging/*.js'
,
"app/components/messaging/messaging_service.js"
,
"app/components/messaging/messaging.js"
],
dest
:
'dist/<%= grunt.branchname %>/app.js'
},
...
...
@@ -323,7 +326,7 @@ module.exports = function (grunt) {
dev
:
{
files
:
{
'app/index.html'
:
'app/main.html'
,
'app/app.js'
:
'app/main.js'
,
'app/app.js'
:
'app/main.js'
}
},
prod
:
{
...
...
app/components/messaging/messaging.js
View file @
e718c1fc
...
...
@@ -126,7 +126,7 @@ angular.module("ulakbus.messaging")
});
}
this
.
createDirectChannel
=
function
(
user
){
iScope
.
createDirectChannel
=
function
(
user
){
// user format is ['username', 'key', 'avatarUrl']
var
key
=
user
[
1
];
MessagingService
.
create_direct_channel
(
key
)
...
...
@@ -135,8 +135,6 @@ angular.module("ulakbus.messaging")
})
};
iScope
.
createDirectChannel
=
this
.
createDirectChannel
;
iScope
.
hideApp
=
function
(){
iScope
.
chatAppIsHidden
=
true
;
MessagingService
.
toggle_messaging_window_visibility
(
false
);
...
...
app/main.html
View file @
e718c1fc
...
...
@@ -32,7 +32,6 @@
<!-- @if NODE_ENV == 'PRODUCTION' -->
<link
rel=
"stylesheet"
href=
"css/app.css"
>
<link
rel=
"stylesheet"
href=
"css/roboto/roboto.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<!-- @endif -->
</head>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
>
...
...
@@ -147,7 +146,6 @@
<!-- @if NODE_ENV == 'PRODUCTION' -->
<script
src=
"bower_components/jquery.min.js"
></script>
<script
src=
"bower_components/jquery-ui.min.js"
></script>
<script
src=
"bower_components/angular.js"
></script>
<script
src=
"bower_components/components.js"
></script>
<script
src=
"shared/translations.js"
></script>
...
...
app/zetalib/form_service.js
View file @
e718c1fc
...
...
@@ -1552,12 +1552,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
angular
.
forEach
(
childmodel
.
form
,
function
(
v
,
k
)
{
if
(
v
.
formName
===
key
)
{
//if (!childmodel.model[key].key) {
function
indexInTitleMap
(
element
,
index
,
array
)
{
var
unicodeValue
=
v
.
titleMap
.
find
(
function
(
element
,
index
,
array
)
{
if
(
element
[
'value'
]
===
value
)
{
return
element
;
}
}
var
unicodeValue
=
v
.
titleMap
.
find
(
indexInTitleMap
);
});
if
(
unicodeValue
){
unicodeValue
=
unicodeValue
.
name
;
reformattedModel
[
key
]
=
{
...
...
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