PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/application/views/admin/reports/delete_all_js.php

https://bitbucket.org/builtbyclick/new-speed-evidence
PHP | 21 lines | 5 code | 1 blank | 15 comment | 0 complexity | 1ec73c6d0462ac0837fc39b95b81e300 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-3.0, LGPL-2.1, BSD-3-Clause
  1. /**
  2. * Delete all js file.
  3. *
  4. * Handles javascript stuff related to the delete all function.
  5. *
  6. * PHP version 5
  7. * LICENSE: This source file is subject to LGPL license
  8. * that is available through the world-wide-web at the following URI:
  9. * http://www.gnu.org/copyleft/lesser.html
  10. * @author Ushahidi Team <team@ushahidi.com>
  11. * @package Ushahidi - http://source.ushahididev.com
  12. * @module API Controller
  13. * @copyright Ushahidi - http://www.ushahidi.com
  14. * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
  15. */
  16. $(document).ready(function() {
  17. $(document.getElementById("reportForm")).submit(function () {
  18. return window.confirm("<?php echo addslashes(Kohana::lang('ui_admin.delete_all_confirm')); ?>");
  19. });
  20. });