Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 3c50c1ee38af73da9048eb836362dafa071bb5f8 1 parent 36ad84e
Michael Leinartas authored
2  webapp/content/js/dashboard.js
@@ -1293,6 +1293,7 @@ function selectGraphSize() {
1293 1293
     layout: 'form',
1294 1294
     labelAlign: 'right',
1295 1295
     labelWidth: 80,
  1296
+    modal: true,
1296 1297
     items: [presetCombo, widthField, heightField],
1297 1298
     buttonAlign: 'center',
1298 1299
     buttons: [
@@ -1833,6 +1834,7 @@ function removeAllGraphs() {
1833 1834
       title: "Remove All Graphs",
1834 1835
       width: 200,
1835 1836
       height: 120,
  1837
+      modal: true,
1836 1838
       layout: 'vbox',
1837 1839
       layoutConfig: { align: 'center' },
1838 1840
       items: [
2  whisper/bin/whisper-dump.py
@@ -77,7 +77,7 @@ def dump_archives(archives):
77 77
     offset = archive['offset']
78 78
     for point in xrange(archive['points']):
79 79
       (timestamp, value) = struct.unpack(whisper.pointFormat, map[offset:offset+whisper.pointSize])
80  
-      print '%d: %d, %g' % (point, timestamp, value)
  80
+      print '%d: %d, %10.35g' % (point, timestamp, value)
81 81
       offset += whisper.pointSize
82 82
     print
83 83
 

0 notes on commit 3c50c1e

Please sign in to comment.
Something went wrong with that request. Please try again.