Mercurial > public > sg101
view static/js/tiny_mce/plugins/advhr/rule.htm @ 505:a5d11471d031
Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 19:13:38 +0000 |
parents | 6c182ceb7147 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{#advhr.advhr_desc}</title> <script type="text/javascript" src="../../tiny_mce_popup.js"></script> <script type="text/javascript" src="js/rule.js"></script> <script type="text/javascript" src="../../utils/mctabs.js"></script> <script type="text/javascript" src="../../utils/form_utils.js"></script> <link href="css/advhr.css" rel="stylesheet" type="text/css" /> </head> <body role="application"> <form onsubmit="AdvHRDialog.update();return false;" action="#"> <div class="tabs"> <ul> <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li> </ul> </div> <div class="panel_wrapper"> <div id="general_panel" class="panel current"> <table role="presentation" border="0" cellpadding="4" cellspacing="0"> <tr role="group" aria-labelledby="width_label"> <td><label id="width_label" for="width">{#advhr_dlg.width}</label></td> <td class="nowrap"> <input id="width" name="width" type="text" value="" class="mceFocus" /> <span style="display:none;" id="width_unit_label">{#advhr_dlg.widthunits}</span> <select name="width2" id="width2" aria-labelledby="width_unit_label"> <option value="">px</option> <option value="%">%</option> </select> </td> </tr> <tr> <td><label for="size">{#advhr_dlg.size}</label></td> <td><select id="size" name="size"> <option value="">{#advhr_dlg.normal}</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select></td> </tr> <tr> <td><label for="noshade">{#advhr_dlg.noshade}</label></td> <td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td> </tr> </table> </div> </div> <div class="mceActionPanel"> <input type="submit" id="insert" name="insert" value="{#insert}" /> <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> </div> </form> </body> </html>