diff --git a/GithubFinder/javascripts/f.js b/GithubFinder/javascripts/f.js
index 1c37bcf..18f5f7e 100644
--- a/GithubFinder/javascripts/f.js
+++ b/GithubFinder/javascripts/f.js
@@ -2,67 +2,67 @@
// ;"ALEXLE";
window.F = Class.create({
initialize: function(options){
- options = Object.extend( {
+ options = Object.extend( {
user_id: 'samsonjs'
,repository: SJS.projName
,branch: 'master'
}, options || {} );
-
+
this.ps = [];
this.shas = {};
-
+
this.u = options.user_id;
this.r = options.repository;
this.b = options.branch;
this.id = options.id;
this.render(this.id);
-
+
this.repo = null;
/* Prototype RC2 */
- // document.on('click','a[data-sha]', function( event, element ){
+ // document.on('click','a[data-sha]', function( event, element ){
// this.click( element.readAttribute('data-sha'), element );
// element.blur();
// }.bind(this) );
-
- document.observe('click', function(e) {
+
+ document.observe('click', function(e) {
e = e.findElement();
if( !e.readAttribute('data-sha') ) return;
this.click( e.readAttribute('data-sha'), e );
e.blur();
}.bind(this));
-
+
var idc = $('in'),
s = function() { idc.className = 'on' },
h = function() { if( Ajax.activeRequestCount == 0 ) idc.className = 'off' };
- Ajax.Responders.register( {
+ Ajax.Responders.register( {
onException: function(r,x) { console.log(x);h() }
,onComplete: h
,onCreate: s
});
-
+
/* init plugins */
if( FP )
for( var i = 0; i < FP.length; i++ )
new FP[i](this);
-
+
/* extractURL: if user assigns user_id, repo, branch */
this.xU();
this.oR(); // open repo
}
-
-
+
+
,xU: function() {
}
-
- ,render: function(selector) {
+
+ ,render: function(selector) {
$(selector || document.body).insert(this.h());
this.psW = $('ps_w');
this.bW = $('b_w');
}
-
+
,h: function() {
return [
'