~unifield-team/unifield-web/jfb-utp-433

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/database.mako

  • Committer: jf
  • Date: 2013-03-04 13:55:42 UTC
  • mfrom: (4679.3.2 6.0-unifield-aio-41)
  • Revision ID: jfb@tempo-consulting.fr-20130304135542-ij6sc8ibg3ja76xz
AIO-41 [IMP] Message to display when changing the super admin password
lp:~unifield-team/unifield-web/web_aio_41

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
            jQuery(document).ready(function () {
26
26
                jQuery(document.body).append($error_tbl);
27
 
                $error_tbl.dialog({
 
27
                var error_dialog_options = {
28
28
                    modal: true,
29
29
                    resizable: false,
30
30
                    title: '<div class="error_message_header">${error.get("title", "Warning")}</div>'
31
 
                });
 
31
                };
 
32
                % if error.get('redirect_to'):
 
33
                    error_dialog_options['close'] = function( event, ui ) {
 
34
                        $(location).attr('href','${error['redirect_to']}');
 
35
                    };
 
36
                % endif
 
37
                $error_tbl.dialog(error_dialog_options);
32
38
            })
33
39
        </script>
34
40
    % endif