Permalink
Browse files

Make two windows in dashboard modal

From patch in https://bugs.launchpad.net/graphite/+bug/931401
Make "Remove All Graphs" and "Change Graph Size" windows modal
  • Loading branch information...
mleinart committed Apr 23, 2012
1 parent 36ad84e commit 3c50c1ee38af73da9048eb836362dafa071bb5f8
Showing with 3 additions and 1 deletion.
  1. +2 −0 webapp/content/js/dashboard.js
  2. +1 −1 whisper/bin/whisper-dump.py
@@ -1293,6 +1293,7 @@ function selectGraphSize() {
layout: 'form',
labelAlign: 'right',
labelWidth: 80,
+ modal: true,
items: [presetCombo, widthField, heightField],
buttonAlign: 'center',
buttons: [
@@ -1833,6 +1834,7 @@ function removeAllGraphs() {
title: "Remove All Graphs",
width: 200,
height: 120,
+ modal: true,
layout: 'vbox',
layoutConfig: { align: 'center' },
items: [
@@ -77,7 +77,7 @@ def dump_archives(archives):
offset = archive['offset']
for point in xrange(archive['points']):
(timestamp, value) = struct.unpack(whisper.pointFormat, map[offset:offset+whisper.pointSize])
- print '%d: %d, %g' % (point, timestamp, value)
+ print '%d: %d, %10.35g' % (point, timestamp, value)
offset += whisper.pointSize
print

0 comments on commit 3c50c1e

Please sign in to comment.