This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('echofin-modal-upload',function(Y){ | |
var ioUpload = Y.clone(BASE_IO), | |
ul = Y.one(this.FORM_CONTAINER + ' ul'); | |
; | |
ioUpload.method = 'POST'; | |
ioUpload.url = BASE_URL + 'properties/property-pdfs/uploadImage/'; | |
Y.Echofin.Modal.Upload = { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sheet = new Y.StyleSheet('<link rel="stylesheet" type="text/css" href="' + location.pathname + '/../css/ppp/' + jdata['issue'] + '.css" />'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('echofin-modal',function(Y){ | |
var _modal | |
; | |
Y.Echofin.Modal = { | |
BUTTON_CANCEL : 'Cancel', | |
BUTTON_OK : 'Ok', | |
BUTTON_NO : 'No', | |
BUTTON_YES : 'Yes', | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// where... | |
someFunc = function(e) { | |
// e has the event data | |
} | |
// I'm having a play with YUI 3 and came across an oddity. | |
Y.all('input').on('focus', someFunc); | |
// In the context of someFunc, 'this' is the set of inputs and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y.delegate('click',function(e){ | |
e.preventDefault(); | |
},'.browse_link','a'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_switch : function(o){ | |
try { | |
Y.log(64); | |
_scrollAnimation.stop(); | |
Y.log(66); | |
}catch(e){ | |
// do nothing | |
} | |
var group = window.location.hash || this._switchCookie() || '#components'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('text-resize',function(Y){ | |
var _current = 0; | |
var Resize = { | |
MIN : 10, | |
MAX : 18, | |
DEFAULT : 14, | |
UNIT : 'px', | |
COOKIE : 'GP_FONT_SIZE', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('echofin-form-remaining',function(Y){ | |
var _counters = {}; | |
var Remaining = { | |
ERROR_CLASS : 'echofin-form-error', | |
attachCharacterCounter : function (node, max_chars, message, message_node) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loopDir($path = null) { | |
if($path === null) { | |
$path = '.'; | |
} | |
$d = dir($path); | |
$ret = ''; | |
while(false !== ($f = $d->read())) { | |
if($f === '.' || $f === '..') { | |
continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Build Directory array | |
*/ | |
function loopDir($path = null) { | |
if($path === null) { | |
$path = './'; | |
} | |