[dev] [commit] r1062 - wwwbase/js

Cătălin Frâncu cata at francu.com
Thu Jan 16 15:56:23 EET 2014


Oops! Mersi, Radule!

On 01/16/2014 02:52 PM, automailer at dexonline.ro wrote:
> Author: radu
> Date: Thu Jan 16 14:52:48 2014
> New Revision: 1062
>
> Log:
> flash missing error hack
>
> Modified:
>     wwwbase/js/flex.js
>
> Modified: wwwbase/js/flex.js
> ==============================================================================
> --- wwwbase/js/flex.js	Wed Jan 15 11:01:03 2014	(r1061)
> +++ wwwbase/js/flex.js	Thu Jan 16 14:52:48 2014	(r1062)
> @@ -1,15 +1,17 @@
>   // If there are error messages, show them in a dialog
>   $(function() {
> -  $('#flashMessage').dialog({
> -    buttons: {
> -      Ok: function() {
> -        $(this).dialog('close');
> -      }
> -    },
> -    modal: true,
> -    title: 'Eroare',
> -    width: 500,
> -  });
> +  if($('#flashMessage').length) {
> +    $('#flashMessage').dialog({
> +      buttons: {
> +        Ok: function() {
> +          $(this).dialog('close');
> +        }
> +      },
> +      modal: true,
> +      title: 'Eroare',
> +      width: 500,
> +    });
> +  }
>   });
>
>   function updateModelTypeList() {
> _______________________________________________
> Dev mailing list
> Dev at dexonline.ro
> http://list.dexonline.ro/listinfo/dev
>


More information about the Dev mailing list