Merge branch 'master' of repo.wisemapping.org:wisemapping/wiseorg

This commit is contained in:
Tarjei Huse 2012-03-19 11:45:28 +01:00
commit c6acc88fd7
3 changed files with 11 additions and 46 deletions

View File

@ -18,6 +18,17 @@
mindplot.DesignerKeyboard = new Class({
Extends:Keyboard,
Static:{
register: function(designer) {
this._instance = new mindplot.DesignerKeyboard(designer);
this._instance.activate();
},
getInstance: function(){
return this._instance;
}
},
initialize : function(designer) {
$assert(designer, "designer can not be null");
this.parent({defaultEventType: 'keydown'});
@ -335,8 +346,3 @@ mindplot.DesignerKeyboard = new Class({
}
});
mindplot.DesignerKeyboard.register = function(designer) {
this._instance = new mindplot.DesignerKeyboard(designer);
this._instance.activate();
};

View File

@ -1,41 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<script type='text/javascript'
src='../../../../../wise-doc/src/main/webapp/js/mootools-core-1.3.2-full-compat.js'></script>
<script type='text/javascript'
src='../../../../../wise-doc/src/main/webapp/js/mootools-more-1.3.2.1-yui.js'></script>
<script type='text/javascript' src='../../../main/javascript/header.js'></script>
<script type='text/javascript' src='../../../../../core-js/target/classes/core.js'></script>
<script type='text/javascript' src='../../../main/javascript/widget/ToolbarItem.js'></script>
<script type='text/javascript' src='../../../main/javascript/widget/ColorPalettePanel.js'></script>
<script type='text/javascript'>
window.addEvent("load", function(e) {
var model = {
getValue: function() {
},
setValue : function(value) {
console.log("value:" + value);
}
};
var palette = new mindplot.widget.ColorPalettePanel('myButton', model,"/mindplot/src/main/javascript/widget");
});
</script>
</head>
<body>
<div id="myButton" style="border: 1px red solid">
The button
</div>
</body>
</html>

View File