com web/php: Finally remove XHTML from .js files: js/common.js js/search.js js/usernotes.js
| From: | Hannes Magnusson | Date: | Wed, 04 Jun 2014 18:08:05 +0000 |
| Subject: | com web/php: Finally remove XHTML from .js files: js/common.js js/search.js js/usernotes.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19315@lists.php.net to get a copy of this message | ||
Commit: d5c8c1d7eb66ce830846d88cd2bdad94f2234d62
Author: Michael <git@rvapps.org> Wed, 4 Jun 2014 20:08:05 +0200
Parents: 113c86286d163da2c16d66feea91519a1cc57892
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d5c8c1d7eb66ce830846d88cd2bdad94f2234d62
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) {