gfse: always open a resizable text box when editing concrete syntax

(Also fixed a broken link in gf-web-api-examples.html)
This commit is contained in:
hallgren
2013-08-19 14:19:18 +00:00
parent e9eeefa6f0
commit 029f1d40e5
3 changed files with 8 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
<head> <head>
<title>GF web services API examples</title> <title>GF web services API examples</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../gfse/editor.css" title="Cloud"> <link rel="stylesheet" type="text/css" href="gfse/editor.css" title="Cloud">
<meta name = "viewport" content = "width = device-width"> <meta name = "viewport" content = "width = device-width">
<style type="text/css"> <style type="text/css">
@@ -174,6 +174,6 @@ full API.
</dl> </dl>
<hr> <hr>
<div class=modtime><small> <div class=modtime><small>
<!-- hhmts start -->Last modified: Tue Nov 20 16:17:42 CET 2012 <!-- hhmts end --> <!-- hhmts start -->Last modified: Fri Aug 16 16:48:28 CEST 2013 <!-- hhmts end -->
</small></div> </small></div>
<address><a href="http://www.cse.chalmers.se/~hallgren/">TH</a></address> <address><a href="http://www.cse.chalmers.se/~hallgren/">TH</a></address>

View File

@@ -40,3 +40,5 @@
+ Bug! The startcat menu shows the first category by default, but the startcat + Bug! The startcat menu shows the first category by default, but the startcat
flag is actually not set until a selection is made from the menu. flag is actually not set until a selection is made from the menu.
+ Always open a resizable text box when editing concrete syntax.

View File

@@ -1811,16 +1811,18 @@ function string_editor(el,init,ok,async) {
e.it.focus(); e.it.focus();
} }
var m=empty_class("span","error_message"); var m=empty_class("span","error_message");
if(init.indexOf("\n")>=0) { /*if(init.indexOf("\n")>=0)*/ {
var rows=init.split("\n").length+1 var rows=init.split("\n").length+1
var i=node("textarea",{"class":"string_edit",name:"it", var i=node("textarea",{"class":"string_edit",name:"it",
rows:rows,cols:"80"}, rows:rows,cols:"60"},
[text(init)]); [text(init)]);
} }
/*
else { else {
var i=node("input",{"class":"string_edit",name:"it",value:init},[]); var i=node("input",{"class":"string_edit",name:"it",value:init},[]);
if(init.length>10) i.size=init.length+5; if(init.length>10) i.size=init.length+5;
} }
*/
var e=node("form",{}, var e=node("form",{},
[i, [i,
text(" "), text(" "),