Merged dLog replacement

This commit is contained in:
Igor Zhukov 2014-01-24 22:07:10 +04:00
parent f14c46c5d8
commit e81fd52078
3 changed files with 1 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<div ng-view></div>
<script type="text/javascript" src="vendor/console-polyfill.js"></script>
<script type="text/javascript" src="vendor/console-polyfill/console-polyfill.js"></script>
<script type="text/javascript" src="vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="vendor/jquery.nanoscroller/nanoscroller.js"></script>
<script type="text/javascript" src="vendor/jquery.emojiarea/jquery.emojiarea.js"></script>

View File

@ -282,7 +282,6 @@ angular.module('myApp.directives', ['myApp.filters'])
if (richTextarea) {
scope.$watch('draftMessage.text', function (newVal) {
console.log('on update', newVal);
if (!newVal.length && !messageField.value.length) {
$timeout(function () {
updateField();
@ -292,8 +291,6 @@ angular.module('myApp.directives', ['myApp.filters'])
}
function updateField () {
console.log(scope.draftMessage);
console.log('update field', scope.draftMessage.text);
$(richTextarea).text(scope.draftMessage.text || '');
}