added an alert when the user copies the chat content

This commit is contained in:
Felipe Cecagno 2014-11-30 19:34:56 -02:00
parent 6ccef83bb5
commit b9ee79cdd5
3 changed files with 11 additions and 12 deletions

View File

@ -194,6 +194,7 @@ bbb.chat.save.complete = Chat successfully saved
bbb.chat.copyBtn.toolTip = Copy chat
bbb.chat.copyBtn.accessibilityName = Copy chat to clipboard
bbb.chat.copyBtn.label = Copy
bbb.chat.copy.complete = Chat copied to clipboard
bbb.chat.contextmenu.copyalltext = Copy All Text
bbb.chat.publicChatUsername = Public
bbb.chat.optionsTabName = Options

View File

@ -195,6 +195,7 @@ bbb.chat.save.complete = Bate-papo salvo com sucesso
bbb.chat.copyBtn.toolTip = Copiar bate-papo
bbb.chat.copyBtn.accessibilityName = Copiar bate-papo para a área de transferência
bbb.chat.copyBtn.label = Copiar
bbb.chat.copy.complete = Bate-papo copiado para a área de trabalho
bbb.chat.publicChatUsername = Público
bbb.chat.optionsTabName = Opções
bbb.chat.privateChatSelect = Selecione uma pessoa para um bate-papo privado

View File

@ -1,22 +1,19 @@
package org.bigbluebutton.modules.chat.services
{
import flash.events.Event;
import flash.system.System;
import org.bigbluebutton.core.UsersUtil;
import mx.controls.Alert;
import org.bigbluebutton.modules.chat.model.ChatConversation;
import org.bigbluebutton.modules.chat.events.ChatCopyEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
public class ChatCopy
{
public function ChatCopy(){
}
public function copyAllText(e:ChatCopyEvent):void{
var chat:ChatConversation = e.chatMessages;
System.setClipboard(chat.getAllMessageAsString());
}
public function copyAllText(e:ChatCopyEvent):void {
var chat:ChatConversation = e.chatMessages;
System.setClipboard(chat.getAllMessageAsString());
Alert.show(ResourceUtil.getInstance().getString('bbb.chat.copy.complete'), "", Alert.OK);
}
}
}