Commits

Anonymous committed 586b96e

minor changes

  • Participants
  • Parent commits 2065a2a

Comments (0)

Files changed (3)

                                     + '\n');
                           };
 
+var qs = location.search;
+HTSQL.param = {};
+if(qs) {
+    qs = qs.substr(1, qs.length).split('&');
+    for(var i = 0, l = qs.length; i < l; i++) {
+        var param = qs[i].split('=');
+        if(param.length == 2)
+            HTSQL.param[param[0]] = decodeURIComponent(param[1]);
+    }
+}
+
+
 var _jqueryVersion = (window.$ || function() {return {}}).call().jquery 
                        || '0.0.0';
 if(_jqueryVersion < '1.4.3')

htraf/htraf2.js

-HTRAF = HTRAF || {};
-HTRAF.htsqlVersion = '2';
-HTRAF.prefix = typeof(HTRAF.prefix) != 'undefined' ? HTRAF.prefix:'';
-
-document.write('<script type="text/javascript" src="' 
-    + HTRAF.prefix + '/htraf.js"></script>');

htraf/js/htraf.widgets.js

 $.htraf = $.htraf || {};
 $.htraf.plugin = $.htraf.plugin || {};
 
-// {{{ Errors/Error handling
+// {{{ Error handling
 $.htraf.AssertionError = function(message, element) {
     if(element)
         message += '\nElement: ' + getHtml(element);