@@ -316,6 +316,15 @@ function editEntryClick(param) {
316
316
$ ( '#editTestcampaignButton' ) . attr ( 'class' , 'btn btn-primary' ) ;
317
317
$ ( '#editTestcampaignButton' ) . removeAttr ( 'hidden' ) ;
318
318
319
+ // handle the click for specific action buttons
320
+ $ ( "#editTestcampaignButton" ) . click ( editEntryModalSaveHandler ) ;
321
+ $ ( "#addTestcampaignButton" ) . click ( addEntryModalSaveHandler ) ;
322
+
323
+ //clear the modals fields when closed
324
+ $ ( '#editTestcampaignModal' ) . on ( 'hidden.bs.modal' , editEntryModalCloseHandler ) ;
325
+ $ ( '#addTestcampaignModal' ) . on ( 'hidden.bs.modal' , addEntryModalCloseHandler ) ;
326
+ $ ( '#viewTestcampaignModal' ) . on ( 'hidden.bs.modal' , viewEntryModalCloseHandler ) ;
327
+
319
328
var formEdit = $ ( '#editTestcampaignModal' ) ;
320
329
321
330
showLoader ( "#testcampaignList" ) ;
@@ -997,9 +1006,9 @@ function aoColumnsFunc_Tag() {
997
1006
var aoColumns = [
998
1007
{ "data" : "1" , "sName" : "Tag" , "sWidth" : "250px" , "title" : doc . getDocOnline ( "tag" , "tag" ) } ,
999
1008
{
1000
- "data" : "4" ,
1001
- "sName" : "DateCreated" ,
1002
- "sWidth" : "150px" ,
1009
+ "data" : "4" ,
1010
+ "sName" : "DateCreated" ,
1011
+ "sWidth" : "150px" ,
1003
1012
"title" : doc . getDocLabel ( "page_tag" , "datecreated" ) ,
1004
1013
"mRender" : function ( data , type , oObj ) {
1005
1014
return getDate ( oObj [ "4" ] ) ;
0 commit comments