Skip to content

Commit

Permalink
updating phurion source.
Browse files Browse the repository at this point in the history
  • Loading branch information
orneryd committed Dec 15, 2012
1 parent 4042795 commit d06afa3
Show file tree
Hide file tree
Showing 51 changed files with 1,432 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
461 changes: 461 additions & 0 deletions lib/jquery-ui/overcast/jquery-ui-1.9.1.custom.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/jquery-ui/overcast/jquery-ui-1.9.1.custom.min.css

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
461 changes: 461 additions & 0 deletions lib/jquery-ui/smoothness/jquery-ui-1.9.1.custom.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/jquery-ui/smoothness/jquery-ui-1.9.1.custom.min.css

Large diffs are not rendered by default.

461 changes: 461 additions & 0 deletions lib/jquery-ui/ui-darkness/jquery-ui-1.9.1.custom.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/jquery-ui/ui-darkness/jquery-ui-1.9.1.custom.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions workbench/Phurion/combinedHeaderTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion workbench/Phurion/imageCellTemplate.html
Original file line number Diff line number Diff line change
@@ -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'] }" />
27 changes: 27 additions & 0 deletions workbench/Phurion/index.html
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 12 deletions workbench/Phurion/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
};
Expand All @@ -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,
Expand All @@ -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 }]
};
Expand Down

0 comments on commit d06afa3

Please sign in to comment.