~unifield-team/unifield-web/save_binary_file_bug

« back to all changes in this revision

Viewing changes to openobject/addons/base/static/workflow/javascript/conn_anchor.js

  • Committer: ame (Tiny)
  • Date: 2010-01-04 10:41:58 UTC
  • Revision ID: ame@tinyerp.com-20100104104158-92jypyicgh56twq8
[REF] openerp-web => openobject-web (project name changed)
[REF] openerp => openobject (namespace changed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
//
28
28
////////////////////////////////////////////////////////////////////////////////
29
29
 
30
 
if (typeof(openerp) == "undefined") {
31
 
    openerp = new Object;
32
 
}
33
 
 
34
 
if (typeof(openerp.workflow) == "undefined") {
35
 
    openerp.workflow = new Object;
36
 
}
37
 
 
38
 
openerp.workflow.ConnectionAnchor = new Class;
39
 
openerp.workflow.ConnectionAnchor.prototype = $merge(openerp.workflow.ConnectionAnchor.prototype, draw2d.ChopboxConnectionAnchor.prototype);
40
 
 
41
 
openerp.workflow.ConnectionAnchor.implement({
 
30
if (typeof(openobject) == "undefined") {
 
31
    openobject = new Object;
 
32
}
 
33
 
 
34
if (typeof(openobject.workflow) == "undefined") {
 
35
    openobject.workflow = new Object;
 
36
}
 
37
 
 
38
openobject.workflow.ConnectionAnchor = new Class;
 
39
openobject.workflow.ConnectionAnchor.prototype = $merge(openobject.workflow.ConnectionAnchor.prototype, draw2d.ChopboxConnectionAnchor.prototype);
 
40
 
 
41
openobject.workflow.ConnectionAnchor.implement({
42
42
 
43
43
        initialize : function(owner) {
44
44
                draw2d.ChopboxConnectionAnchor.call(this,owner);
104
104
                
105
105
                
106
106
                //find point on ellipse when node is StateOval
107
 
                if(this.owner.getParent() instanceof openerp.workflow.StateOval) {
 
107
                if(this.owner.getParent() instanceof openobject.workflow.StateOval) {
108
108
           
109
109
                if(rx!=0) {
110
110