Fix Firefox issue.

This commit is contained in:
Paulo Veiga 2011-08-21 22:53:37 -03:00
parent ad13c296ad
commit f036a7684e
3 changed files with 20 additions and 6 deletions

View File

@ -94,6 +94,17 @@ mindplot.DesignerKeyboard = new Class({
designer.changeFontWeight();
},
'ctrl+s' : function(event) {
event.preventDefault();
designer.save(null, true);
},
'meta+s' : function(event) {
event.preventDefault();
designer.save(null, true);
},
'ctrl+i' : function() {
designer.changeFontStyle();
},

View File

@ -127,7 +127,7 @@ mindplot.Workspace = new Class({
this._screenManager.setScale(zoom);
// Some changes in the screen. Let's fire an update event...
this._screenManager.fireEvent('update', new Event());
this._screenManager.fireEvent('update');
},
getScreenManager: function() {
@ -180,7 +180,7 @@ mindplot.Workspace = new Class({
event.preventDefault();
// Fire drag event ...
screenManager.fireEvent('update', new Event());
screenManager.fireEvent('update');
wasDragged = true;
@ -202,7 +202,7 @@ mindplot.Workspace = new Class({
mWorkspace.enableWorkspaceEvents(true);
if (!wasDragged) {
screenManager.fireEvent('click', new Event());
screenManager.fireEvent('click');
}
};
screenManager.addEvent('mouseup', workspace._mouseUpListener);

View File

@ -13,9 +13,12 @@
<!--<script type='text/javascript' src='../js/wiseLibrary.js'></script>-->
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>
<!--<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>-->
<!--<script type='text/javascript' src='../js/common.js'></script>-->
<!--<script type='text/javascript' src='../js/windoo.js'></script>-->
@ -25,8 +28,8 @@
<script type="text/javascript">
//Google-Brix framework load callback function
collabOnLoad = function() {
isGoogleBrix=true;
if(typeof mindplot != "undefined"){
isGoogleBrix = true;
if (typeof mindplot != "undefined") {
mindplot.collaboration.frameworks.brix.BrixFramework.instanciate();
}
};