Skip to content

Instantly share code, notes, and snippets.

View lossendae's full-sized avatar

Stéphane Boulard lossendae

View GitHub Profile
@lossendae
lossendae / bbdd.js
Created March 13, 2012 09:15
PLugin Drag and drop between grid and target placeholder
Ext.namespace('Ext.ux.dd');
Ext.ux.dd.BigBrotherGridDD = Ext.extend(Ext.util.Observable, {
copy: true
,scrollable: true
,constructor: function(config){
if (config)
Ext.apply(this, config);
// this.addEvents({
@lossendae
lossendae / linked_combobox.js
Created June 8, 2011 09:50
Combobox linké
var firstCombo = new Ext.form.ComboBox({
store: store_combo_1,
typeAhead: true,
forceSelection: true,
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true,
id:'combo1'
});
@lossendae
lossendae / nested_quote_parser.php
Created May 4, 2011 21:38
nested quote parser example
<?php
function parse_quote($matches) {
$bbcode = '';
preg_match_all('/(\w*?)=\'(.*?)\'/msi', $matches[1], $attr_matches);
$attributes = array_combine($attr_matches[1], $attr_matches[2]);
if(!empty($attributes))
{
$attribute_strings = array();
foreach($attributes as $key => $value)
{