|
From: <al...@us...> - 2008-10-24 00:19:23
|
Revision: 760
http://sciret.svn.sourceforge.net/sciret/?rev=760&view=rev
Author: alpeb
Date: 2008-10-24 00:19:17 +0000 (Fri, 24 Oct 2008)
Log Message:
-----------
- added dynamic YUI lib loading function
- execute js on the To-Do's dropdown
Modified Paths:
--------------
trunk/javascript/general.js
Modified: trunk/javascript/general.js
===================================================================
--- trunk/javascript/general.js 2008-10-24 00:17:54 UTC (rev 759)
+++ trunk/javascript/general.js 2008-10-24 00:19:17 UTC (rev 760)
@@ -14,15 +14,35 @@
* @see http://yuiblog.com/blog/2007/06/12/module-pattern/
*/
-/**
- * Aliases definitions (functions, namespaces)
- */
YAHOO.namespace("sciret");
SCIRET = YAHOO.sciret;
// to avoid conflicts with YAHOO.tools' $ function
var $j = jQuery.noConflict();
+/**
+* This is only to load YUI libs that don't need to used immediately after
+* the page is loaded
+*/
+SCIRET.loader= function() {
+ var loader;
+
+ return {
+ combine: true,
+ base: null,
+
+ insert: function(arrComponents, onSuccess) {
+ loader = new YAHOO.util.YUILoader({
+ require: arrComponents,
+ onSuccess: onSuccess,
+ base: this.base,
+ combine: this.combine
+ });
+ loader.insert();
+ }
+ };
+}();
+
SCIRET.debugWindow = function() {
var popup = false;
@@ -552,7 +572,7 @@
}
var todosDropdown = YAHOO.util.Dom.get('todosDropdown');
- todosDropdown.innerHTML = responseObj.responseText;
+ SCIRET.utils.replaceContent(responseObj, 'todosDropdown');
if (SCIRET.utils.isSafari) {
todosDropdown.style.paddingBottom = '25px';
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|