Permalink
Browse files

updating phurion source.

  • Loading branch information...
1 parent 4042795 commit d06afa3f610b430c9b2cfb36f9a4182377756047 @timothyswt timothyswt committed Dec 15, 2012
Showing with 1,432 additions and 16 deletions.
  1. BIN lib/jquery-ui/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png
  2. BIN lib/jquery-ui/overcast/images/ui-bg_flat_0_eeeeee_40x100.png
  3. BIN lib/jquery-ui/overcast/images/ui-bg_flat_55_c0402a_40x100.png
  4. BIN lib/jquery-ui/overcast/images/ui-bg_flat_55_eeeeee_40x100.png
  5. BIN lib/jquery-ui/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png
  6. BIN lib/jquery-ui/overcast/images/ui-bg_glass_35_dddddd_1x400.png
  7. BIN lib/jquery-ui/overcast/images/ui-bg_glass_60_eeeeee_1x400.png
  8. BIN lib/jquery-ui/overcast/images/ui-bg_inset-hard_75_999999_1x100.png
  9. BIN lib/jquery-ui/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png
  10. BIN lib/jquery-ui/overcast/images/ui-icons_3383bb_256x240.png
  11. BIN lib/jquery-ui/overcast/images/ui-icons_454545_256x240.png
  12. BIN lib/jquery-ui/overcast/images/ui-icons_70b2e1_256x240.png
  13. BIN lib/jquery-ui/overcast/images/ui-icons_999999_256x240.png
  14. BIN lib/jquery-ui/overcast/images/ui-icons_fbc856_256x240.png
  15. +461 −0 lib/jquery-ui/overcast/jquery-ui-1.9.1.custom.css
  16. +5 −0 lib/jquery-ui/overcast/jquery-ui-1.9.1.custom.min.css
  17. BIN lib/jquery-ui/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  18. BIN lib/jquery-ui/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  19. BIN lib/jquery-ui/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  20. BIN lib/jquery-ui/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  21. BIN lib/jquery-ui/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  22. BIN lib/jquery-ui/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  23. BIN lib/jquery-ui/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  24. BIN lib/jquery-ui/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  25. BIN lib/jquery-ui/smoothness/images/ui-icons_222222_256x240.png
  26. BIN lib/jquery-ui/smoothness/images/ui-icons_2e83ff_256x240.png
  27. BIN lib/jquery-ui/smoothness/images/ui-icons_454545_256x240.png
  28. BIN lib/jquery-ui/smoothness/images/ui-icons_888888_256x240.png
  29. BIN lib/jquery-ui/smoothness/images/ui-icons_cd0a0a_256x240.png
  30. +461 −0 lib/jquery-ui/smoothness/jquery-ui-1.9.1.custom.css
  31. +5 −0 lib/jquery-ui/smoothness/jquery-ui-1.9.1.custom.min.css
  32. BIN lib/jquery-ui/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png
  33. BIN lib/jquery-ui/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png
  34. BIN lib/jquery-ui/ui-darkness/images/ui-bg_glass_20_555555_1x400.png
  35. BIN lib/jquery-ui/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png
  36. BIN lib/jquery-ui/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png
  37. BIN lib/jquery-ui/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png
  38. BIN lib/jquery-ui/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png
  39. BIN lib/jquery-ui/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png
  40. BIN lib/jquery-ui/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png
  41. BIN lib/jquery-ui/ui-darkness/images/ui-icons_222222_256x240.png
  42. BIN lib/jquery-ui/ui-darkness/images/ui-icons_4b8e0b_256x240.png
  43. BIN lib/jquery-ui/ui-darkness/images/ui-icons_a83300_256x240.png
  44. BIN lib/jquery-ui/ui-darkness/images/ui-icons_cccccc_256x240.png
  45. BIN lib/jquery-ui/ui-darkness/images/ui-icons_ffffff_256x240.png
  46. +461 −0 lib/jquery-ui/ui-darkness/jquery-ui-1.9.1.custom.css
  47. +5 −0 lib/jquery-ui/ui-darkness/jquery-ui-1.9.1.custom.min.css
  48. +3 −3 workbench/Phurion/combinedHeaderTemplate.html
  49. +1 −1 workbench/Phurion/imageCellTemplate.html
  50. +27 −0 workbench/Phurion/index.html
  51. +3 −12 workbench/Phurion/main.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -2,8 +2,8 @@
<span style="position: absolute; left: 200px; top:4px;">
<div class="kgSortButtonDown" style="top: 8px; right: 100px;" data-bind="visible: $parent.columns()[1].showSortButtonDown"></div>
<div class="kgSortButtonUp" style="top: 8px; right: 100px;" data-bind="visible: $parent.columns()[1].showSortButtonUp"></div>
- <span style="margin-left: 15px;" data-bind="click: $parent.columns()[1].sort">From</span> / <span data-bind="click: $parent.columns()[2].sort">Subject</span>
- <div class="kgSortButtonDown" style="top: 8px; left: 115px;" data-bind="visible: $parent.columns()[2].showSortButtonDown"></div>
- <div class="kgSortButtonUp" style="top: 8px; left: 115px;" data-bind="visible: $parent.columns()[2].showSortButtonUp"></div>
+ <span style="margin-left: 40px;" data-bind="click: $parent.columns()[1].sort">From</span> / <span data-bind="click: $parent.columns()[2].sort">Subject</span>
+ <div class="kgSortButtonDown" style="top: 8px; left: 170px;" data-bind="visible: $parent.columns()[2].showSortButtonDown"></div>
+ <div class="kgSortButtonUp" style="top: 8px; left: 170px;" data-bind="visible: $parent.columns()[2].showSortButtonUp"></div>
</span>
</div>
@@ -1 +1 @@
-<img data-bind="attr: {'src': $parent.entity['image'] }" />
+<img style="position:absolute;left:0;right:0; top: 0; bottom: 0; margin:auto;" data-bind="attr: {'src': $parent.entity['image'] }" />
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <title>ng-grid workbench</title>
+ </head>
+ <body>
+ <div style="position: absolute; left: 0; right: 50%; top: 0; bottom: 0;" data-bind="koGrid: gridOptions"></div>
+ <div style="position: absolute; left: 51%; right: 0; top: 0; bottom: 0; background-color: lightblue;">
+ <div data-bind="foreach: selectedItems">
+ <ul>
+ <li><span data-bind="text: Date"></span></li>
+ <li><span data-bind="text: From"></span></li>
+ <li><span data-bind="text: Subject"></span></li>
+ <li><span data-bind="text: HasBeenRead"></span></li>
+ <li><span data-bind="text: MessageId"></span></li>
+ </ul>
+ </div>
+ </div>
+ </body>
+<link rel="stylesheet" type="text/css" href="../../KoGrid.css" />
+<link rel="stylesheet" type="text/css" href="../../lib/jquery-ui/overcast/jquery-ui-1.9.1.custom.css" />
+ <script type="text/javascript" src="../../lib/knockout-2.2.0.js"></script>
+ <script type="text/javascript" src="../../lib/jquery-1.8.2.min.js"></script>
+ <script type="text/javascript" src="../../lib/jquery-ui-1.9.1.custom.min.js"></script>
+ <script type="text/javascript" src="../../build/KoGrid.debug.js"></script>
+ <script type="text/javascript" src="main.js"></script>
+</html>
@@ -15,16 +15,11 @@ function MessageObject() {
};
function mainViewModel() {
var self = this;
-
self.inboxData = ko.observableArray([]);
this.createTestData = function () {
-
var today, arr = [];
-
today = new Date();
-
for (i = 1; i < 50; i = i + 1) {
-
obj = new MessageObject();
obj.Date = new Date();
obj.Date.setDate(today.getDate() + i);
@@ -33,10 +28,8 @@ function mainViewModel() {
obj.MessageId = "00000000-0000-0000-0000-00000000000" + i.toString(); // fake my guid
obj.HasBeenRead(false); // this might be true when I read it from the DB
obj.index = i;
-
arr.push(obj);
}
-
// Our grid is bound to inboxData which is an observableArray
self.inboxData(arr);
};
@@ -48,11 +41,8 @@ function mainViewModel() {
return true;
};
self.selectedItems = ko.observableArray([]);
- self.currentMail = ko.computed(function() {
- return self.selectedItems()[0];
- });
self.createTestData();
- this.gridOptions = {
+ self.gridOptions = {
data: self.inboxData,
multiSelect: false,
displaySelectionCheckbox: false,
@@ -62,10 +52,11 @@ function mainViewModel() {
beforeSelectionChange: self.markEmailRead,
rowTemplate: 'rowTemplate.html',
selectedItems: self.selectedItems,
+ jqueryUITheme: true,
showColumnMenu: false,
columnDefs: [
{ field: '', width: 50, cellTemplate: 'imageCellTemplate.html', resizable: false, sortable: false },
- { field: 'From', width: 691, resizable: false, cellTemplate: 'combinedCellTemplate.html', headerCellTemplate: 'combinedHeaderTemplate.html' },
+ { field: 'From', width: 690, resizable: false, cellTemplate: 'combinedCellTemplate.html', headerCellTemplate: 'combinedHeaderTemplate.html' },
{ field: 'Subject', width: 0, visible: false }, // fake column for sorting.
{ field: 'Date', width: 200, resizable: false }]
};

0 comments on commit d06afa3

Please sign in to comment.