Franck Pommereau

show net within dialog

......@@ -58,7 +58,12 @@ class Simulator (BaseHTTPSimulator) :
def init_model (self) :
return self.res["model.html"] % self.info
def init_ui (self) :
return BaseHTTPSimulator.init_ui(self)[:-1]
return BaseHTTPSimulator.init_ui(self)[:-1] + [{
"label" : "Show net",
"id" : "ui-shownet",
"href" : "#",
"script" : "dialog($('#model .petrinet').html())"
}]
def init_help (self) :
help = BaseHTTPSimulator.init_help(self)
help.update({"#model .abcd" : "ABCD source code",
......
......@@ -93,7 +93,8 @@ body {
}
#dialog-close {
display: inline;
/* TODO: fix position when dialog has a horizontal scrollbar */
display: block;
float: right;
border: solid 1px #AAA;
padding: 5px 10px;
......