Commit 40d9891d authored by Yusei Tahara's avatar Yusei Tahara Committed by Arnaud Fontaine

P-S: Fix erp5.js to keep it compatible with jquery 1.4.

.prop() is available after jquery 1.6.
parent 578f654f
......@@ -252,11 +252,11 @@ var addOnChangeEventHandler = function() {\n
$("#master div").each(function(i) {\n
if ($(this).attr("class") == "input") {\n
$(this).children().each(function() {\n
if ($(this).prop("tagName") == "INPUT" ||\n
$(this).prop("tagName") == "SELECT" ||\n
$(this).prop("tagName") == "TEXTAREA") {\n
if ($(this).attr("tagName") == "INPUT" ||\n
$(this).attr("tagName") == "SELECT" ||\n
$(this).attr("tagName") == "TEXTAREA") {\n
if ($(this).val() == "update..." ||\n
($(this).prop("tagName") == "INPUT" &&\n
($(this).attr("tagName") == "INPUT" &&\n
$(this).attr("type") == \'submit\')) {\n
// this is a relation field wheel or a submit form button\n
this.onclick = function() { changed = false;};\n
......@@ -267,7 +267,7 @@ var addOnChangeEventHandler = function() {\n
}\n
} \n
/* Listbox or MatrixBox */\n
if ($(this).prop("tagName") == "DIV" && (\n
if ($(this).attr("tagName") == "DIV" && (\n
$(this).attr("class") == "listbox-container" ||\n
$(this).attr("class") == "MatrixContent")) {\n
$(this).find(\'td\').each(function(){\n
......@@ -295,7 +295,7 @@ var rewriteIndentedSelect = function() {\n
\n
$("#master select").each(function() {\n
$(this).children().each(function() {\n
if ($(this).prop("tagName") != "OPTION") {\n
if ($(this).attr("tagName") != "OPTION") {\n
return non-false;\n
}\n
text = $(this).html();\n
......
2013-6-20 yusei
* Fix erp5.js to keep it compatible with jquery 1.4. .prop() is available after jquery 1.6.
2012-10-16 yusei
* Improve error handling on Workflow_statusModify. If divergence is solved by other user, then show a nice message.
......@@ -384,4 +387,4 @@
2006-06-15 Vincent
* Initial commit.
* Valid XHTML1.0 Strict + CSS 2.0.
* Valid XHTML1.0 Strict + CSS 2.0.
\ No newline at end of file
1100
\ No newline at end of file
1101
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment