File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function cb_SetPostBackFunctionToSubmit(obj)
3838 return ;
3939 }
4040
41- if ( ! OnClickAttr . Contains ( "PostBack(this)" ) )
41+ if ( ! OnClickAttr . ContainsNameWithSpliter ( "PostBack" , ';' , '(' ) )
4242 if ( OnClickAttr . charAt ( OnClickAttr . length - 1 ) == ';' )
4343 InputElement . setAttribute ( "onclick" , OnClickAttr + "PostBack(this)" ) ;
4444 else
@@ -1254,6 +1254,11 @@ String.prototype.ContainsWithSpliter = function (Text, Spliter)
12541254 return ( Spliter + this + Spliter ) . indexOf ( Spliter + Text + Spliter ) !== - 1 ;
12551255} ;
12561256
1257+ String . prototype . ContainsNameWithSpliter = function ( Text , Spliter , SpliterNameValue )
1258+ {
1259+ return ( Spliter + this + SpliterNameValue ) . indexOf ( Spliter + Text + SpliterNameValue ) !== - 1 ;
1260+ } ;
1261+
12571262String . prototype . Replace = function ( SearchValue , ReplaceValue )
12581263{
12591264 var MainText = this ;
You can’t perform that action at this time.
0 commit comments