hide submit
Showing
1 changed file
with
7 additions
and
2 deletions
| ... | @@ -294,8 +294,8 @@ endforeach; | ... | @@ -294,8 +294,8 @@ endforeach; |
| 294 | <?php endforeach;?> | 294 | <?php endforeach;?> |
| 295 | </div> | 295 | </div> |
| 296 | <p> | 296 | <p> |
| 297 | <input type="submit" value=" Save " /> | 297 | <input id="submit" type="submit" value=" Save " /> |
| 298 | <input type="button" value=" Cancel " onclick="document.location.href='/wp-admin/admin.php?page=notifications';" /> | 298 | <input id="cancel" type="button" value=" Cancel " onclick="document.location.href='/wp-admin/admin.php?page=notifications';" /> |
| 299 | </p> | 299 | </p> |
| 300 | </form> | 300 | </form> |
| 301 | </div> | 301 | </div> |
| ... | @@ -305,6 +305,11 @@ endforeach; | ... | @@ -305,6 +305,11 @@ endforeach; |
| 305 | 305 | ||
| 306 | var codeCleaned = false; | 306 | var codeCleaned = false; |
| 307 | 307 | ||
| 308 | $('#submit').on('click', function() { | ||
| 309 | $(this).hide(); | ||
| 310 | $('#cancel').hide(); | ||
| 311 | $('#notifications-create-new').trigger('submit'); | ||
| 312 | }); | ||
| 308 | 313 | ||
| 309 | 314 | ||
| 310 | 315 | ... | ... |
-
Please register or sign in to post a comment