* fixed a js naming conflicts among php syntax.

This commit is contained in:
Catouse
2014-10-30 17:06:19 +08:00
parent a62494bd95
commit 23c5fe5d0d
+8 -8
View File
@@ -377,17 +377,17 @@ EOT;
<script>
function selectAll(scope)
{
var $this = $(this);
if($this.closest('.datatable').length) return;
if(scope) $('#' + scope + ' input').each(function() { $this.attr("checked", true);});
else $('input:checkbox').each(function() { $this.attr("checked", true);});
var e = $(this);
if(e.closest('.datatable').length) return;
if(scope) $('#' + scope + ' input').each(function() { e.attr("checked", true);});
else $('input:checkbox').each(function() { e.attr("checked", true);});
}
function selectReverse(scope)
{
var $this = $(this);
if($this.closest('.datatable').length) return;
if(scope) $('#' + scope + ' input').each(function() { $this.attr("checked", !$this.attr("checked"));});
else $('input:checkbox').each(function(){ $this.attr("checked", !$(this).attr("checked"));});
var e = $(this);
if(e.closest('.datatable').length) return;
if(scope) $('#' + scope + ' input').each(function() { e.attr("checked", !e.attr("checked"));});
else $('input:checkbox').each(function(){ e.attr("checked", !$(this).attr("checked"));});
}
</script>
EOT;