mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 03:43:48 +01:00
Minor fixes.
This commit is contained in:
parent
41c1f47227
commit
9759ee12cb
@ -101,7 +101,7 @@ mindplot.TextEditor = new Class({
|
||||
|
||||
setTimeout("$('ffoxWorkarroundInput').focus();", 0);
|
||||
};
|
||||
this.fx = new Fx.Morph(this.inputText, 'opacity', { duration: 10});
|
||||
this.fx = new Fx.Tween(this.inputText, {property: 'opacity', duration: 10});
|
||||
this.fx.addEvent('onComplete', onComplete.bind(this));
|
||||
},
|
||||
lostFocusEvent : function ()
|
||||
|
@ -320,17 +320,6 @@ function afterMindpotLibraryLoading() {
|
||||
window.document.location = "mymaps.htm";
|
||||
});
|
||||
|
||||
|
||||
var autosave = function() {
|
||||
|
||||
if (designer.needsSave()) {
|
||||
designer.save(function() {
|
||||
var monitor = core.Monitor.getInstance();
|
||||
}, false);
|
||||
}
|
||||
};
|
||||
autosave.periodical(30000);
|
||||
|
||||
// To prevent the user from leaving the page with changes ...
|
||||
window.onbeforeunload = function confirmExit() {
|
||||
if (designer.needsSave()) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// MooTools: the javascript framework.
|
||||
// Load this file's selection again by visiting: http://mootools.net/more/55656dfd0c63feba6230bd0acc822f94
|
||||
// Or build this file again with packager using: packager build More/More More/URI More/URI.Relative More/Hash More/Hash.Extras More/Fx.Elements More/Fx.Accordion More/Fx.Move More/Fx.Reveal More/Fx.Scroll More/Fx.Slide More/Fx.SmoothScroll More/Fx.Sort More/Drag More/Drag.Move More/Color
|
||||
// Load this file's selection again by visiting: http://mootools.net/more/a6e9cfc60901e7c04a3ebf1805354b50
|
||||
// Or build this file again with packager using: packager build More/More More/String.Extras More/URI More/URI.Relative More/Hash More/Hash.Extras More/Fx.Elements More/Fx.Accordion More/Fx.Move More/Fx.Reveal More/Fx.Scroll More/Fx.Slide More/Fx.SmoothScroll More/Fx.Sort More/Drag More/Drag.Move More/Color
|
||||
/*
|
||||
---
|
||||
copyrights:
|
||||
@ -10,11 +10,17 @@ licenses:
|
||||
- [MIT License](http://mootools.net/license.txt)
|
||||
...
|
||||
*/
|
||||
MooTools.More={version:"1.3.2.1",build:"e586bcd2496e9b22acfde32e12f84d49ce09e59d"};String.implement({parseQueryString:function(d,a){if(d==null){d=true;
|
||||
}if(a==null){a=true;}var c=this.split(/[&;]/),b={};if(!c.length){return b;}c.each(function(i){var e=i.indexOf("=")+1,g=e?i.substr(e):"",f=e?i.substr(0,e-1).match(/([^\]\[]+|(\B)(?=\]))/g):[i],h=b;
|
||||
if(!f){return;}if(a){g=decodeURIComponent(g);}f.each(function(k,j){if(d){k=decodeURIComponent(k);}var l=h[k];if(j<f.length-1){h=h[k]=l||{};}else{if(typeOf(l)=="array"){l.push(g);
|
||||
}else{h[k]=l!=null?[l,g]:g;}}});});return b;},cleanQueryString:function(a){return this.split("&").filter(function(e){var b=e.indexOf("="),c=b<0?"":e.substr(0,b),d=e.substr(b+1);
|
||||
return a?a.call(null,c,d):(d||d===0);}).join("&");}});(function(){var b=function(){return this.get("value");};var a=this.URI=new Class({Implements:Options,options:{},regex:/^(?:(\w+):)?(?:\/\/(?:(?:([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)?(\.\.?$|(?:[^?#\/]*\/)*)([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,parts:["scheme","user","password","host","port","directory","file","query","fragment"],schemes:{http:80,https:443,ftp:21,rtsp:554,mms:1755,file:0},initialize:function(d,c){this.setOptions(c);
|
||||
MooTools.More={version:"1.3.2.1",build:"e586bcd2496e9b22acfde32e12f84d49ce09e59d"};(function(){var c={a:/[àáâãäåăą]/g,A:/[ÀÁÂÃÄÅĂĄ]/g,c:/[ćčç]/g,C:/[ĆČÇ]/g,d:/[ďđ]/g,D:/[ĎÐ]/g,e:/[èéêëěę]/g,E:/[ÈÉÊËĚĘ]/g,g:/[ğ]/g,G:/[Ğ]/g,i:/[ìíîï]/g,I:/[ÌÍÎÏ]/g,l:/[ĺľł]/g,L:/[ĹĽŁ]/g,n:/[ñňń]/g,N:/[ÑŇŃ]/g,o:/[òóôõöøő]/g,O:/[ÒÓÔÕÖØ]/g,r:/[řŕ]/g,R:/[ŘŔ]/g,s:/[ššş]/g,S:/[ŠŞŚ]/g,t:/[ťţ]/g,T:/[ŤŢ]/g,ue:/[ü]/g,UE:/[Ü]/g,u:/[ùúûůµ]/g,U:/[ÙÚÛŮ]/g,y:/[ÿý]/g,Y:/[ŸÝ]/g,z:/[žźż]/g,Z:/[ŽŹŻ]/g,th:/[þ]/g,TH:/[Þ]/g,dh:/[ð]/g,DH:/[Ð]/g,ss:/[ß]/g,oe:/[œ]/g,OE:/[Œ]/g,ae:/[æ]/g,AE:/[Æ]/g},b={" ":/[\xa0\u2002\u2003\u2009]/g,"*":/[\xb7]/g,"'":/[\u2018\u2019]/g,'"':/[\u201c\u201d]/g,"...":/[\u2026]/g,"-":/[\u2013]/g,"»":/[\uFFFD]/g};
|
||||
var a=function(f,h){var e=f,g;for(g in h){e=e.replace(h[g],g);}return e;};var d=function(e,g){e=e||"";var h=g?"<"+e+"(?!\\w)[^>]*>([\\s\\S]*?)</"+e+"(?!\\w)>":"</?"+e+"([^>]+)?>",f=new RegExp(h,"gi");
|
||||
return f;};String.implement({standardize:function(){return a(this,c);},repeat:function(e){return new Array(e+1).join(this);},pad:function(e,h,g){if(this.length>=e){return this;
|
||||
}var f=(h==null?" ":""+h).repeat(e-this.length).substr(0,e-this.length);if(!g||g=="right"){return this+f;}if(g=="left"){return f+this;}return f.substr(0,(f.length/2).floor())+this+f.substr(0,(f.length/2).ceil());
|
||||
},getTags:function(e,f){return this.match(d(e,f))||[];},stripTags:function(e,f){return this.replace(d(e,f),"");},tidy:function(){return a(this,b);},truncate:function(e,f,i){var h=this;
|
||||
if(f==null&&arguments.length==1){f="…";}if(h.length>e){h=h.substring(0,e);if(i){var g=h.lastIndexOf(i);if(g!=-1){h=h.substr(0,g);}}if(f){h+=f;}}return h;
|
||||
}});})();String.implement({parseQueryString:function(d,a){if(d==null){d=true;}if(a==null){a=true;}var c=this.split(/[&;]/),b={};if(!c.length){return b;
|
||||
}c.each(function(i){var e=i.indexOf("=")+1,g=e?i.substr(e):"",f=e?i.substr(0,e-1).match(/([^\]\[]+|(\B)(?=\]))/g):[i],h=b;if(!f){return;}if(a){g=decodeURIComponent(g);
|
||||
}f.each(function(k,j){if(d){k=decodeURIComponent(k);}var l=h[k];if(j<f.length-1){h=h[k]=l||{};}else{if(typeOf(l)=="array"){l.push(g);}else{h[k]=l!=null?[l,g]:g;
|
||||
}}});});return b;},cleanQueryString:function(a){return this.split("&").filter(function(e){var b=e.indexOf("="),c=b<0?"":e.substr(0,b),d=e.substr(b+1);return a?a.call(null,c,d):(d||d===0);
|
||||
}).join("&");}});(function(){var b=function(){return this.get("value");};var a=this.URI=new Class({Implements:Options,options:{},regex:/^(?:(\w+):)?(?:\/\/(?:(?:([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)?(\.\.?$|(?:[^?#\/]*\/)*)([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,parts:["scheme","user","password","host","port","directory","file","query","fragment"],schemes:{http:80,https:443,ftp:21,rtsp:554,mms:1755,file:0},initialize:function(d,c){this.setOptions(c);
|
||||
var e=this.options.base||a.base;if(!d){d=e;}if(d&&d.parsed){this.parsed=Object.clone(d.parsed);}else{this.set("value",d.href||d.toString(),e?new a(e):false);
|
||||
}},parse:function(e,d){var c=e.match(this.regex);if(!c){return false;}c.shift();return this.merge(c.associate(this.parts),d);},merge:function(d,c){if((!d||!d.scheme)&&(!c||!c.scheme)){return false;
|
||||
}if(c){this.parts.every(function(e){if(d[e]){return false;}d[e]=c[e]||"";return true;});}d.port=d.port||this.schemes[d.scheme.toLowerCase()];d.directory=d.directory?this.parseDirectory(d.directory,c?c.directory:""):"/";
|
||||
|
@ -50,8 +50,10 @@ var Ajax = new Class({
|
||||
},
|
||||
|
||||
onComplete: function() {
|
||||
if (this.options.update) $(this.options.update).empty().setHTML(this.response.text);
|
||||
if (this.options.evalScripts || this.options.evalResponse) this.evalScripts();
|
||||
if (this.options.update)
|
||||
$(this.options.update).empty().innerHTML = this.response.text;
|
||||
if (this.options.evalScripts || this.options.evalResponse)
|
||||
this.evalScripts();
|
||||
this.fireEvent('onComplete', [this.response.text, this.response.xml], 20);
|
||||
},
|
||||
|
||||
@ -347,28 +349,28 @@ Element.$overlay = function(hide, deltaZ) {
|
||||
'width': pos.width + 'px', 'height': pos.height + 'px'});
|
||||
};
|
||||
|
||||
Element.extend({
|
||||
|
||||
fixOverlay: window.ie6 ? Element.$overlay : function() {
|
||||
return false;
|
||||
},
|
||||
|
||||
remove: function(trash) {
|
||||
if (this.fixOverlayElement) {
|
||||
this.fixOverlayElement.remove();
|
||||
if (trash) {
|
||||
Garbage.trash([this.fixOverlayElement]);
|
||||
}
|
||||
}
|
||||
this.parentNode.removeChild(this);
|
||||
if (trash) {
|
||||
Garbage.trash([this.empty()]);
|
||||
return false;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
});
|
||||
//Element.extend({
|
||||
//
|
||||
// fixOverlay: window.ie6 ? Element.$overlay : function() {
|
||||
// return false;
|
||||
// },
|
||||
//
|
||||
// remove: function(trash) {
|
||||
// if (this.fixOverlayElement) {
|
||||
// this.fixOverlayElement.remove();
|
||||
// if (trash) {
|
||||
// Garbage.trash([this.fixOverlayElement]);
|
||||
// }
|
||||
// }
|
||||
// this.parentNode.removeChild(this);
|
||||
// if (trash) {
|
||||
// Garbage.trash([this.empty()]);
|
||||
// return false;
|
||||
// }
|
||||
// return this;
|
||||
// }
|
||||
//
|
||||
//});
|
||||
Drag.Transition = {
|
||||
linear:{
|
||||
step: function(start, current, direction) {
|
||||
@ -840,6 +842,8 @@ Drag.ResizeImage = new Class({
|
||||
});
|
||||
|
||||
var Windoo = new Class({
|
||||
Extends: Options,
|
||||
Implements: Events,
|
||||
options: {
|
||||
type: 'dom',
|
||||
url: false,
|
||||
@ -963,20 +967,24 @@ var Windoo = new Class({
|
||||
var $row = function(prefix, contentClass) {
|
||||
return '<div class="' + prefix + '-left ' + _p + '-drag"><div class="' + prefix + '-right"><div class="' + contentClass + '"></div></div></div>';
|
||||
};
|
||||
var iefix = window.ie && this.options.type != 'iframe',
|
||||
innerContent = '<div class="' + _p + '-frame">' + $row("top", "title") + $row("bot", "strut") + '</div><div class="' + _p + '-body">' + (iefix ? Windoo.ieTableCell : '') + '</div>';
|
||||
this.el.setHTML(innerContent).inject(this.options.container);
|
||||
var iefix = window.ie && this.options.type != 'iframe';
|
||||
this.el.innerHTML = '<div class="' + _p + '-frame">' + $row("top", "title") + $row("bot", "strut") + '</div><div class="' + _p + '-body">' + (iefix ? Windoo.ieTableCell : '') + '</div>';
|
||||
this.el.inject(this.options.container);
|
||||
|
||||
|
||||
if (window.ie) this.el.addClass(_p + '-' + theme.name + '-ie');
|
||||
|
||||
var frame = this.el.getFirst(),
|
||||
body = this.el.getLast(),
|
||||
title = frame.getElement('.title'),
|
||||
titleText = new Element('div', {'class': 'title-text'}).inject(title);
|
||||
|
||||
frame.getElement('.strut').innerHTML = ' ',
|
||||
this.dom = {
|
||||
frame: frame,
|
||||
body: body,
|
||||
title: titleText,
|
||||
strut: frame.getElement('.strut').setHTML(' '),
|
||||
strut: frame.getElement('.strut'),
|
||||
content: iefix ? body.getElement('td') : body
|
||||
};
|
||||
this.dom.title.addEvent('dblclick', this.maximize.bind(this));
|
||||
@ -1008,7 +1016,8 @@ var Windoo = new Class({
|
||||
self.bound[name] = action;
|
||||
if (opt) {
|
||||
var klass = _p + '-button ' + _p + '-' + name + ( opt == 'disabled' ? ' ' + _p + '-' + name + '-disabled' : '' );
|
||||
self.dom[name] = new Element('a', {'class': klass, 'href': '#', 'title': title}).setHTML('x').inject(self.el);
|
||||
self.dom[name] = new Element('a', {'class': klass, 'href': '#', 'title': title}).innerHTML = 'x';
|
||||
self.dom[name].inject(self.el);
|
||||
self.dom[name].addEvent('click', opt == 'disabled' ? self.bound.noaction : action);
|
||||
}
|
||||
};
|
||||
@ -1047,7 +1056,7 @@ var Windoo = new Class({
|
||||
},
|
||||
|
||||
setHTML: function(content) {
|
||||
if (!this.dom.iframe) this.dom.content.empty().setHTML(content);
|
||||
if (!this.dom.iframe) this.dom.content.empty().innerHTML = content;
|
||||
return this;
|
||||
},
|
||||
|
||||
@ -1084,7 +1093,7 @@ var Windoo = new Class({
|
||||
},
|
||||
|
||||
setTitle: function(title) {
|
||||
this.dom.title.setHTML(title || ' ');
|
||||
this.dom.title.innerHTML = title || ' ';
|
||||
return this;
|
||||
},
|
||||
|
||||
@ -1121,7 +1130,7 @@ var Windoo = new Class({
|
||||
},
|
||||
|
||||
fix: function(hide) {
|
||||
this.el.fixOverlay(hide || !this.visible);
|
||||
this.el.$overlay(hide || !this.visible);
|
||||
return this.fixShadow(hide);
|
||||
},
|
||||
|
||||
@ -1310,7 +1319,8 @@ var Windoo = new Class({
|
||||
return this.setZIndex(this.wm.maxZIndex());
|
||||
}
|
||||
});
|
||||
Windoo.implement(new Events, new Options);
|
||||
//Windoo.implement(new Events, new Options);
|
||||
|
||||
Windoo.ieTableCell = '<table style="position:absolute;top:0;left:0;border:none;border-collapse:collapse;padding:0;"><tr><td style="border:none;overflow:auto;position:relative;padding:0;"></td></tr></table>';
|
||||
|
||||
Windoo.Themes = {
|
||||
@ -1558,7 +1568,7 @@ Windoo.Themes.aqua = {
|
||||
|
||||
Windoo.Ajax = Ajax.extend({
|
||||
onComplete: function() {
|
||||
if (this.options.window) this.options.window.setHTML(this.response.text);
|
||||
if (this.options.window) this.options.window.innerHTML = this.response.text;
|
||||
this.parent();
|
||||
}
|
||||
});
|
||||
@ -1695,7 +1705,8 @@ Windoo.Dialog = Windoo.extend({
|
||||
dialog.dom.panel = new Element('div', $merge({'class': this.classPrefix(klass + '-pane')}, dialog.options.panel));
|
||||
for (var btn in buttons) if (buttons[btn]) dialog.dom.panel.adopt(dialog.buttons[btn]);
|
||||
dialog.dom.message = new Element('div', $merge({'class': this.classPrefix(klass + '-message')}, dialog.options.message));
|
||||
return this.addPanel(dialog.dom.panel).adopt(dialog.dom.message.setHTML(dialog.message));
|
||||
dialog.dom.message.innerHTML = dialog.message;
|
||||
return this.addPanel(dialog.dom.panel).adopt(dialog.dom.message);
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user