File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 177177 }
178178 $ actions .= ' ' .Display::url (get_lang ('Delete ' ), api_get_self ().'?a=delete_justification&justification_id= ' .$ userJustification ['id ' ], ['class ' => 'btn btn-danger ' ]);
179179 $ table ->setCellContents ($ row , $ col ++, $ actions );
180+ $ code = $ justification ['code ' ];
181+ $ htmlHeadXtra [] = '<script type="text/javascript" >$(function(){$("#file_ ' .$ code .'_file label").css("color","green");});</script> ' ;
180182 $ row ++;
181183 }
182184
183185 $ userJustificationList .= $ justificationContent .$ table ->toHtml ();
184186}
185187
188+ $ htmlHeadXtra [] = '<script type="text/javascript" >
189+ $(function(){
190+ $("#justification label").each(function(){
191+ var colorG = $(this).css("color");
192+ var lgtxt = $(this).text().replace(/ /g,"").length;
193+ if (colorG!="green"&&colorG!="rgb(0, 128, 0)"&&lgtxt>3) {
194+ $(this).append("<img src=\" ' .api_get_path (WEB_PATH ).'main/img/icons/22/warning.png\" />");
195+ }
196+ });
197+ });</script> ' ;
198+
186199$ tabs = SocialManager::getHomeProfileTabs ('justification ' );
187200$ justification = $ tabs .$ formValidator ->returnForm ().$ userJustificationList ;
188201
You can’t perform that action at this time.
0 commit comments