equal
deleted
inserted
replaced
1788 }); |
1788 }); |
1789 }; |
1789 }; |
1790 |
1790 |
1791 bindClick(".Rk-ZoomOut", "zoomOut"); |
1791 bindClick(".Rk-ZoomOut", "zoomOut"); |
1792 bindClick(".Rk-ZoomIn", "zoomIn"); |
1792 bindClick(".Rk-ZoomIn", "zoomIn"); |
|
1793 bindClick(".Rk-ZoomFit", "autoScale"); |
1793 this.$.find(".Rk-CurrentUser").mouseenter( |
1794 this.$.find(".Rk-CurrentUser").mouseenter( |
1794 function() { _this.$.find(".Rk-UserList").slideDown(); } |
1795 function() { _this.$.find(".Rk-UserList").slideDown(); } |
1795 ); |
1796 ); |
1796 this.$.find(".Rk-Users").mouseleave( |
1797 this.$.find(".Rk-Users").mouseleave( |
1797 function() { _this.$.find(".Rk-UserList").slideUp(); } |
1798 function() { _this.$.find(".Rk-UserList").slideUp(); } |
1994 + '<div class="Rk-TopBar-Separator"></div><% }; if (options.show_search_field) { %>' |
1995 + '<div class="Rk-TopBar-Separator"></div><% }; if (options.show_search_field) { %>' |
1995 + '<form action="#" class="Rk-GraphSearch-Form"><input type="search" class="Rk-GraphSearch-Field" placeholder="<%- translate("Search in graph") %>" /></form><div class="Rk-TopBar-Separator"></div><% } %></div><% } %>' |
1996 + '<form action="#" class="Rk-GraphSearch-Form"><input type="search" class="Rk-GraphSearch-Field" placeholder="<%- translate("Search in graph") %>" /></form><div class="Rk-TopBar-Separator"></div><% } %></div><% } %>' |
1996 + '<div class="Rk-Editing-Space<% if (!options.show_top_bar) { %> Rk-Editing-Space-Full<% } %>">' |
1997 + '<div class="Rk-Editing-Space<% if (!options.show_top_bar) { %> Rk-Editing-Space-Full<% } %>">' |
1997 + '<div class="Rk-Labels"></div><canvas class="Rk-Canvas" resize></canvas><div class="Rk-Notifications"></div><div class="Rk-Editor">' |
1998 + '<div class="Rk-Labels"></div><canvas class="Rk-Canvas" resize></canvas><div class="Rk-Notifications"></div><div class="Rk-Editor">' |
1998 + '<% if (options.show_bins) { %><div class="Rk-Fold-Bins">«</div><% } %>' |
1999 + '<% if (options.show_bins) { %><div class="Rk-Fold-Bins">«</div><% } %>' |
1999 + '<div class="Rk-ZoomButtons"><div class="Rk-ZoomIn" title="<%-translate("Zoom In")%>"></div><div class="Rk-ZoomOut" title="<%-translate("Zoom Out")%>"></div></div>' |
2000 + '<div class="Rk-ZoomButtons"><div class="Rk-ZoomIn" title="<%-translate("Zoom In")%>"></div><div class="Rk-ZoomFit" title="<%-translate("Zoom Fit")%>"></div><div class="Rk-ZoomOut" title="<%-translate("Zoom Out")%>"></div></div>' |
2000 + '</div></div>' |
2001 + '</div></div>' |
2001 ), |
2002 ), |
2002 fixSize: function(_autoscale) { |
2003 fixSize: function(_autoscale) { |
2003 var w = this.$.width(), |
2004 var w = this.$.width(), |
2004 h = this.$.height(); |
2005 h = this.$.height(); |