Skip to content

Instantly share code, notes, and snippets.

{
"name": "KREWE",
"description": "New Orleans Ada Krewe Pool",
"ticker": "KREWE",
"homepage": "https://krewe.cloud"
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ext.Direct Grid Example</title>
<!-- ** CSS ** -->
<!-- base library -->
<link rel="stylesheet" type="text/css" href="ext-3.2.2/resources/css/ext-all.css" />
<!-- overrides to base library -->
update: function(id, doc, fn){
var self = this;
id = (id instanceof ObjectID || id.toHexString) ? id : ObjectID.createFromHexString(id);
this._collection.update({_id: id}, {$set: doc}, {upsert: false, safe: true}, function(err){
if (err) return self._connection._error(err);
if (fn) return self.findById(id, fn, true);
});
return this;
},
/*
* The majority of this code is my own, but a few parts were copied from
* ExtJS grid examples. That code's license appears below. My code is
* likewise GNU GPL license v3 Licensed (http://www.gnu.org/copyleft/gpl.html)
*/
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
/*
* The majority of this code is my own, but a few parts were copied from
* ExtJS grid examples. That code's license appears below. My code is
* likewise GNU GPL license v3 Licensed (http://www.gnu.org/copyleft/gpl.html)
*/
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
/*
* The majority of this code is my own, but a few parts were copied from
* ExtJS grid examples. That code's license appears below. My code is
* likewise GNU GPL license v3 Licensed (http://www.gnu.org/copyleft/gpl.html)
*/
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
/*
* The majority of this code is based on the Ext JS Connect JsonRpc provider.
* That code's license appears below. My changes are likewise MIT Licensed
*/
/*!
* Ext JS Connect
* Copyright(c) 2010 Ext JS, Inc.
* MIT Licensed
*/