Author: jablko
Date: Tue Oct 19 18:08:14 2010
New Revision: 8325

Log:
Use standard JavaScript method

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Tue Oct 19 17:23:52 2010        (r8324)
+++ trunk/js/dialog.js  Tue Oct 19 18:08:14 2010        (r8325)
@@ -2,27 +2,6 @@
 
 (function ($)
   {
-    /**
-     * Extra string methods
-     */
-
-    String.prototype.replaceAll = function (sFind, sReplace)
-    {
-      thisString = this.valueOf();
-
-      while (0 <= thisString.indexOf(sFind))
-      {
-        thisString = thisString.replace(sFind, sReplace);
-      }
-
-      return thisString;
-    }
-
-    /**
-     * Define Qubit dialog classes
-     */
-
-    // Build object for holding dialog data
     function QubitDialog(table, options)
     {
       this.table = document.getElementById(table);
@@ -531,12 +510,12 @@
               }
           }
 
-          tr = newRowTemplate.replaceAll('{' + this.fieldPrefix + '[id]}', 
this.id);
+          tr = newRowTemplate.replace('{' + this.fieldPrefix + '[id]}', 
this.id);
           for (fname in this.fields)
           {
             if (0 < fname.length)
             {
-              tr = tr.replaceAll('{' + fname + '}', render(fname));
+              tr = tr.replace('{' + fname + '}', render(fname));
             }
           }
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to