Commit e718c1fc authored by Vladimir Baranov's avatar Vladimir Baranov

Fix build

parent edad2093
......@@ -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: {
......
......@@ -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);
......
......@@ -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>
......
......@@ -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] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment