Skip to content

Commit

Permalink
Minimizing buttons replaced by closing buttons (temporarily) #83
Browse files Browse the repository at this point in the history
  • Loading branch information
amesure committed Jun 12, 2013
1 parent 411e6e6 commit 95d1932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions d3/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ var View = function (id, groupe, bouton, svgs, target, nodesC, linksC, bgC, view
/**** en-tête du dialog ****/

var titlebar = dialog.parents('.ui-dialog').find('.ui-dialog-titlebar');
$("<button/>", {text:"-"}).appendTo(titlebar).button().click(function() {dialog.toggle();});
$("<button/>", {id: "toggle"+ID, text:"Move"}).appendTo(titlebar);
/*$("<button/>", {text:"-"}).appendTo(titlebar).button().click(function() {dialog.toggle();}); */
$("<button/>", {id: "toggle"+ID, text:"Move", style:'right:15px'}).appendTo(titlebar);

$('#toggle' + ID).button().click (function(event){
var interact = $(this).button("option","label");
Expand All @@ -319,7 +319,7 @@ var View = function (id, groupe, bouton, svgs, target, nodesC, linksC, bgC, view

var minWidth = dialog.parents('.ui-dialog').find('.ui-dialog-title').width()
dialog.parents('.ui-dialog').find('.ui-button').each(function(){minWidth+=$(this).width()})
dialog.dialog({minWidth:minWidth+ 20})
dialog.dialog({minWidth:minWidth+ 25})

if (typeView==="substrate"){titlebar.css('background', "url(css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x")}

Expand Down

0 comments on commit 95d1932

Please sign in to comment.