File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
themes/default/assets/javascripts Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function onShowEnd() {
149149 if (trim ($ item ['client_template_id ' ]) != '' ){
150150 if ($ text != '' ) $ text .= '' ;
151151 $ text .= '<li rel=" ' . $ item ['assigned_template_id ' ] . '"> ' . $ tpl [$ item ['client_template_id ' ]];
152- $ text .= '<a href="#" class="button icons16 icoDelete "></a> ' ;
152+ $ text .= ' <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove-circle" aria-hidden="true "></a> ' ;
153153 $ tmp = new stdClass ();
154154 $ tmp ->id = $ item ['assigned_template_id ' ];
155155 $ tmp ->data = '' ;
@@ -173,7 +173,7 @@ function onShowEnd() {
173173 foreach ($ tplAdd as $ item ){
174174 if (trim ($ item ) != '' ){
175175 if ($ text != '' ) $ text .= '' ;
176- $ text .= '<li> ' . $ tpl [$ item ]. '<a href="#" class="button icons16 icoDelete "></a></li> ' ;
176+ $ text .= '<li> ' . $ tpl [$ item ]. ' <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove-circle" aria-hidden="true "></a></li> ' ;
177177 }
178178 }
179179 }
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ function onShowEnd() {
143143 if (trim ($ item ['client_template_id ' ]) != '' ){
144144 if ($ text != '' ) $ text .= '' ;
145145 $ text .= '<li rel=" ' . $ item ['assigned_template_id ' ] . '"> ' . $ tpl [$ item ['client_template_id ' ]];
146- $ text .= '<a href="#" class="button icons16 icoDelete "></a> ' ;
146+ $ text .= ' <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove-circle" aria-hidden="true "></a> ' ;
147147 $ tmp = new stdClass ();
148148 $ tmp ->id = $ item ['assigned_template_id ' ];
149149 $ tmp ->data = '' ;
@@ -167,7 +167,7 @@ function onShowEnd() {
167167 foreach ($ tplAdd as $ item ){
168168 if (trim ($ item ) != '' ){
169169 if ($ text != '' ) $ text .= '' ;
170- $ text .= '<li> ' . $ tpl [$ item ]. '<a href="#" class="button icons16 icoDelete "></a></li> ' ;
170+ $ text .= '<li> ' . $ tpl [$ item ]. ' <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove-circle" aria-hidden="true "></a></li> ' ;
171171 }
172172 }
173173 }
Original file line number Diff line number Diff line change @@ -502,12 +502,12 @@ var ISPConfig = {
502502 if ( addTplId > 0 ) {
503503 var newVal = tpl_add . split ( '/' ) ;
504504 ISPConfig . new_tpl_add_id += 1 ;
505- var delbtn = $ ( '<a href="#"></ a>' ) . attr ( 'class' , 'button icons16 icoDelete ' ) . click ( function ( e ) {
505+ var delbtn = $ ( ' <a href="#"><span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span></ a>' ) . attr ( 'class' , 'btn btn-danger btn-xs ' ) . click ( function ( e ) {
506506 e . preventDefault ( ) ;
507507 ISPConfig . delAdditionalTemplate ( $ ( this ) . parent ( ) . attr ( 'rel' ) ) ;
508508 } ) ;
509509 newVal [ newVal . length ] = 'n' + ISPConfig . new_tpl_add_id + ':' + addTplId ;
510- $ ( '<li>' + addTplText + '</li>' ) . attr ( 'rel' , 'n' + new_tpl_add_id ) . append ( delbtn ) . appendTo ( '#template_additional_list ul' ) ;
510+ $ ( '<li>' + addTplText + '</li>' ) . attr ( 'rel' , 'n' + ISPConfig . new_tpl_add_id ) . append ( delbtn ) . appendTo ( '#template_additional_list ul' ) ;
511511 $ ( '#template_additional' ) . val ( newVal . join ( '/' ) ) ;
512512 alert ( 'additional template ' + addTplText + ' added to customer' ) ;
513513 } else {
You can’t perform that action at this time.
0 commit comments