Commit:    ebdf4b8bfdb3e2cefc0da33236cc85578f765277
Author:    Michael <[email protected]>         Wed, 4 Jun 2014 20:08:05 +0200
Parents:   b71fc9d76f4323b5a8cf9c80f5d55e2666d91e3b
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=ebdf4b8bfdb3e2cefc0da33236cc85578f765277

Log:
Finally remove XHTML from .js files

Last but not least

Changed paths:
  M  js/common.js
  M  js/search.js
  M  js/usernotes.js


Diff:
diff --git a/js/common.js b/js/common.js
index 64ca3a4..a32a647 100755
--- a/js/common.js
+++ b/js/common.js
@@ -507,7 +507,7 @@ $(document).ready(function() {
             beforeSend: function() {
               $("#Vu"+id).hide();
               $("#Vd"+id).hide();
-              $("#V"+id).html("<img src=\"/images/working.gif\" 
alt=\"Working...\" border=\"0\" title=\"Working...\" />");
+              $("#V"+id).html("<img src=\"/images/working.gif\" 
alt=\"Working...\" border=\"0\" title=\"Working...\">");
             }
           });
           request.done(function(data) {
@@ -682,7 +682,7 @@ function flashMessage(o)
   
     var id = 'id_' + Math.random().toString().replace('0.', '');
 
-    var message = $('<div />')
+    var message = $('<div>')
                   .addClass('message ' + options.type)
                   .data('type', options.type)
                   .attr('id', id)
diff --git a/js/search.js b/js/search.js
index ca18831..cd0f2c8 100644
--- a/js/search.js
+++ b/js/search.js
@@ -338,7 +338,7 @@
 
                         // Does a result count already exist in this 
resultHeading?
                         if(resultCount.length == 0) {
-                            var results = $("<span class='result-count' 
/>").text(numResults);
+                            var results = $("<span 
class='result-count'>").text(numResults);
                             resultHeading.append(results);
                         } else {
                             resultCount.text(numResults);
@@ -387,7 +387,7 @@
              * manipulation, which breaks the auto-submit functionality we
              * previously relied upon for enter keypresses in the input box to
              * work. Adding a hidden submit button re-enables it. */
-            $("<input type='submit' style='visibility: hidden; position: 
fixed' />").insertAfter(element);
+            $("<input type='submit' style='visibility: hidden; position: 
fixed'>").insertAfter(element);
 
             // Fix for a styling issue on the created input element.
             $(".tt-hint", $(element).parent()).addClass("search-query");
diff --git a/js/usernotes.js b/js/usernotes.js
index 83804ea..de12547 100644
--- a/js/usernotes.js
+++ b/js/usernotes.js
@@ -14,7 +14,7 @@ $(document).ready(function() {
             beforeSend: function() {
               $("#Vu"+id).hide();
               $("#Vd"+id).hide();
-              $("#V"+id).html("<img src=\"/images/working.gif\" 
alt=\"Working...\" border=\"0\" title=\"Working...\" />");
+              $("#V"+id).html("<img src=\"/images/working.gif\" 
alt=\"Working...\" border=\"0\" title=\"Working...\">");
             }
           });
           request.done(function(data) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to