mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-29 17:04:59 +01:00
More fixes ...
This commit is contained in:
parent
3cf3b857a3
commit
255f50eda8
@ -86,7 +86,7 @@ mindplot.Designer = new Class({
|
|||||||
$(document).bind('mousewheel', function (event) {
|
$(document).bind('mousewheel', function (event) {
|
||||||
// Change mousewheel handling so we let the default
|
// Change mousewheel handling so we let the default
|
||||||
//event happen if we are outside the container.
|
//event happen if we are outside the container.
|
||||||
var coords = screenManager.getContainer().getCoordinates();
|
var coords = screenManager.getContainer()[0].getCoordinates();
|
||||||
var isOutsideContainer = event.client.y < coords.top ||
|
var isOutsideContainer = event.client.y < coords.top ||
|
||||||
event.client.y > coords.bottom ||
|
event.client.y > coords.bottom ||
|
||||||
event.client.x < coords.left ||
|
event.client.x < coords.left ||
|
||||||
|
@ -24,7 +24,7 @@ mindplot.widget.FontFamilyPanel = new Class({
|
|||||||
|
|
||||||
buildPanel: function() {
|
buildPanel: function() {
|
||||||
|
|
||||||
var content = new Element("div", {'class':'toolbarPanel','id':'fontFamilyPanel'});
|
var content = $("<div class='toolbarPanel' id='fontFamilyPanel'></div>");
|
||||||
content.innerHTML = '' +
|
content.innerHTML = '' +
|
||||||
'<div id="times" model="Times" class="toolbarPanelLink" style="font-family:times;">Times</div>' +
|
'<div id="times" model="Times" class="toolbarPanelLink" style="font-family:times;">Times</div>' +
|
||||||
'<div id="arial" model="Arial" style="font-family:arial;">Arial</div>' +
|
'<div id="arial" model="Arial" style="font-family:arial;">Arial</div>' +
|
||||||
|
@ -26,7 +26,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
var widgetsBaseUrl = baseUrl + "css/widget";
|
var widgetsBaseUrl = baseUrl + "css/widget";
|
||||||
|
|
||||||
// Stop event propagation ...
|
// Stop event propagation ...
|
||||||
$('#'+this._containerId).addEvent('click', function (event) {
|
$('#'+this._containerId).bind('click', function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@ -416,7 +416,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
var keyboardShortcut = $('#keyboardShortcuts');
|
var keyboardShortcut = $('#keyboardShortcuts');
|
||||||
if (keyboardShortcut) {
|
if (keyboardShortcut) {
|
||||||
|
|
||||||
keyboardShortcut.addEvent('click', function (event) {
|
keyboardShortcut.bind('click', function (event) {
|
||||||
var reqDialog = new MooDialog.Request('c/keyboard', null,
|
var reqDialog = new MooDialog.Request('c/keyboard', null,
|
||||||
{'class': 'modalDialog keyboardModalDialog',
|
{'class': 'modalDialog keyboardModalDialog',
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
@ -441,7 +441,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
var left = (screen.width / 2) - (width / 2);
|
var left = (screen.width / 2) - (width / 2);
|
||||||
var top = (screen.height / 2) - (height / 2);
|
var top = (screen.height / 2) - (height / 2);
|
||||||
|
|
||||||
videoElem.addEvent('click', function (event) {
|
videoElem.bind('click', function (event) {
|
||||||
window.open("https://www.youtube.com/tv?vq=medium#/watch?v=rKxZwNKs9cE", "_blank", 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);
|
window.open("https://www.youtube.com/tv?vq=medium#/watch?v=rKxZwNKs9cE", "_blank", 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
@ -50,7 +50,7 @@ mindplot.widget.ToolbarItem = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getButtonElem : function() {
|
getButtonElem : function() {
|
||||||
var elem = document.id(this._buttonId);
|
var elem = $('#'+this._buttonId);
|
||||||
$assert(elem, "Could not find element for " + this._buttonId);
|
$assert(elem, "Could not find element for " + this._buttonId);
|
||||||
return elem;
|
return elem;
|
||||||
}.protect(),
|
}.protect(),
|
||||||
@ -78,7 +78,7 @@ mindplot.widget.ToolbarItem = new Class({
|
|||||||
disable : function() {
|
disable : function() {
|
||||||
var elem = this.getButtonElem();
|
var elem = this.getButtonElem();
|
||||||
if (this._enable) {
|
if (this._enable) {
|
||||||
elem.removeEvent('click', this._fn);
|
elem.unbind('click', this._fn);
|
||||||
elem.removeClass('buttonOn');
|
elem.removeClass('buttonOn');
|
||||||
elem.addClass('buttonOff');
|
elem.addClass('buttonOff');
|
||||||
this._enable = false;
|
this._enable = false;
|
||||||
@ -88,7 +88,7 @@ mindplot.widget.ToolbarItem = new Class({
|
|||||||
enable : function() {
|
enable : function() {
|
||||||
var elem = this.getButtonElem();
|
var elem = this.getButtonElem();
|
||||||
if (!this._enable) {
|
if (!this._enable) {
|
||||||
elem.addEvent('click', this._fn);
|
elem.bind('click', this._fn);
|
||||||
elem.removeClass('buttonOff');
|
elem.removeClass('buttonOff');
|
||||||
elem.addClass('buttonOn');
|
elem.addClass('buttonOn');
|
||||||
this._enable = true;
|
this._enable = true;
|
||||||
|
@ -39,7 +39,7 @@ mindplot.widget.ToolbarPaneItem = new Class({
|
|||||||
_init:function () {
|
_init:function () {
|
||||||
// Load the context of the panel ...
|
// Load the context of the panel ...
|
||||||
var panelElem = this.buildPanel();
|
var panelElem = this.buildPanel();
|
||||||
panelElem.setStyle('cursor', 'default');
|
panelElem.css('cursor', 'default');
|
||||||
var buttonElem = this.getButtonElem();
|
var buttonElem = this.getButtonElem();
|
||||||
|
|
||||||
var item = this;
|
var item = this;
|
||||||
@ -65,11 +65,11 @@ mindplot.widget.ToolbarPaneItem = new Class({
|
|||||||
offset: {x:-4,y:0}
|
offset: {x:-4,y:0}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._tip.addEvent('hide', function() {
|
this._tip.bind('hide', function() {
|
||||||
this._visible = false
|
this._visible = false
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this._tip.addEvent('show', function() {
|
this._tip.bind('show', function() {
|
||||||
this._visible = true
|
this._visible = true
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ mindplot.widget.ToolbarPaneItem = new Class({
|
|||||||
this.hide();
|
this.hide();
|
||||||
var elem = this.getButtonElem();
|
var elem = this.getButtonElem();
|
||||||
if (this._enable) {
|
if (this._enable) {
|
||||||
elem.removeEvent('click', this._fn);
|
elem.unbind('click', this._fn);
|
||||||
elem.removeClass('buttonExtOn');
|
elem.removeClass('buttonExtOn');
|
||||||
|
|
||||||
// Todo: Hack...
|
// Todo: Hack...
|
||||||
@ -122,7 +122,7 @@ mindplot.widget.ToolbarPaneItem = new Class({
|
|||||||
enable : function() {
|
enable : function() {
|
||||||
var elem = this.getButtonElem();
|
var elem = this.getButtonElem();
|
||||||
if (!this._enable) {
|
if (!this._enable) {
|
||||||
elem.addEvent('click', this._fn);
|
elem.bind('click', this._fn);
|
||||||
elem.removeClass('buttonExtOff');
|
elem.removeClass('buttonExtOff');
|
||||||
elem.addClass('buttonExtOn');
|
elem.addClass('buttonExtOn');
|
||||||
this._enable = true;
|
this._enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user