[REM] hardcoded diagram id, use class instead
also fix class: add previx bzr revid: xmo@openerp.com-20120229104624-snt8j2kt2y3hp6h1
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
border:1px solid #DCDCDC;
|
||||
overflow:hidden;
|
||||
}
|
||||
.openerp .diagram{
|
||||
.openerp .oe_diagram_diagram{
|
||||
margin:0;
|
||||
padding:0;
|
||||
background-color:#FFF;
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
/* prevent accidental selection of the text in the svg nodes */
|
||||
.openerp .diagram *{
|
||||
.openerp .oe_diagram_diagram *{
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
|
||||
@@ -148,9 +148,9 @@ openerp.web.DiagramView = openerp.web.View.extend({
|
||||
viewport_margin: 50
|
||||
};
|
||||
|
||||
$('#dia-canvas').empty(); // remove previous diagram
|
||||
|
||||
var canvas = document.getElementById("dia-canvas");
|
||||
// remove previous diagram
|
||||
var canvas = self.$element.find('div.oe_diagram_diagram')
|
||||
.empty().get(0);
|
||||
|
||||
var r = new Raphael(canvas, '100%','100%');
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
|
||||
<div class="diagram-container">
|
||||
<div id="dia-canvas" class="diagram"></div>
|
||||
<div class="oe_diagram_diagram"/>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user