Develop and Download Open Source Software

Browse Subversion Repository

Diff of /js/domain.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by berupon, Mon Jan 18 04:50:55 2010 UTC revision 35 by berupon, Tue Jan 19 02:11:50 2010 UTC
# Line 184  function dumpCookie(key, value) { Line 184  function dumpCookie(key, value) {
184          document.cookie = str;          document.cookie = str;
185  }  }
186    
 // TODO: rename to DualSelect routines  
 function resetGridSetting(visibles, hiddens, cols) {  
         visibles.options.length = 0;  
         hiddens.options.length = 0;  
         for (var i=0; i<cols.length; ++i) {  
                 var col = cols[i];  
                 visibles.options[i] = new Option(col.text, col.value);  
         }  
 }  
   
 function setGridSetting(visibles, hiddens, defaultCols, cols) {  
         visibles.options.length = 0;  
         hiddens.options.length = 0;  
         for (var i=0; i<defaultCols.length; ++i) {  
                 var col = defaultCols[i];  
                 var found = false;  
                 for (var j=0; j<cols.length; ++j) {  
                         if (cols[j] == col.value) {  
                                 found = true;  
                                 break;  
                         }  
                 }  
                 var el = found ? visibles : hiddens;  
                 el.options[el.options.length] = new Option(col.text, col.value);  
         }  
 }  
   
 function getGridSetting(visibles) {  
         return collectMember(visibles.options, 'value');  
 }  
   
187  syncLoad = (function() {  syncLoad = (function() {
188                    
189          var cache = {};          var cache = {};
# Line 244  syncLoad = (function() { Line 213  syncLoad = (function() {
213          }          }
214  })();  })();
215    
 renderDoubleList = (function () {  
         var tmp = new EJS({url: 'js/doublelist.ejs'});  
         return function (lhs, rhs) {  
                 var str = tmp.render(  
                         {  
                                 'lhs' : lhs,  
                                 'rhs' : rhs  
                         }  
                 );  
                 return str;  
         }  
 })();  
   
216  var app = (function () {  var app = (function () {
217                    
218          /// private ///          /// private ///

Legend:
Removed from v.34  
changed lines
  Added in v.35

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26