Resolved an issue with the focus.

preferencesAboutTextFull
shibakaneki 14 years ago
parent 666b67b164
commit e179d9ee0a
  1. 20
      resources/library/interactive/Notes.wgt/js/ubw-main.js

@ -19,10 +19,8 @@ function init(){
var maximize = $('<img src="images/stick-but-maximize.png">'); var maximize = $('<img src="images/stick-but-maximize.png">');
var title = $('<div id="menu"></div>'); var title = $('<div id="menu"></div>');
var textField = $('<div id="txt"></div>'); var textField = $('<div id="txt"></div>');
var shadow = $("<table width='100%' height='18' border='0' cellspacing='0' cellpadding='0'><tr><td id='sl' width='139'></td><td id='sc' style='background-image:url(images/shadowcenter.png)'>&nbsp;</td><td id='sr' width='139'></td></tr></table>") var shadow = $("<table width='100%' height='18' border='0' cellspacing='0' cellpadding='0'><tr><td id='sl' width='139'></td><td id='sc' style='background-image:url(images/shadowcenter.png)'>&nbsp;</td><td id='sr' width='139'></td></tr></table>")
.appendTo("body"); .appendTo("body");
var shadowleft = $("<img src='images/shadowleft.png'>") var shadowleft = $("<img src='images/shadowleft.png'>")
.appendTo($("#sl")); .appendTo($("#sl"));
var shadowright = $("<img src='images/shadowright.png'>") var shadowright = $("<img src='images/shadowright.png'>")
@ -32,18 +30,13 @@ function init(){
.append(header) .append(header)
.append(textField); .append(textField);
fontUp fontUp.addClass('menuElement');
.addClass('menuElement'); fontDown.addClass('menuElement');
fontDown minimize.addClass('menuElement');
.addClass('menuElement'); maximize.addClass('menuElement')
minimize
.addClass('menuElement');
maximize
.addClass('menuElement')
.hide(); .hide();
header header.append(maximize)
.append(maximize)
.append(minimize) .append(minimize)
.append(fontUp) .append(fontUp)
.append(fontDown); .append(fontDown);
@ -71,6 +64,7 @@ function init(){
window.uniboard.setPreference("fontSize", newFontSize); window.uniboard.setPreference("fontSize", newFontSize);
}; };
textField.focus();
}); });
fontUp.click( fontUp.click(
@ -87,6 +81,8 @@ function init(){
if(window.uniboard){ if(window.uniboard){
window.uniboard.setPreference("fontSize", newFontSize); window.uniboard.setPreference("fontSize", newFontSize);
}; };
textField.focus();
}); });
minimize.click( minimize.click(

Loading…
Cancel
Save