Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bm18G-0002Ja-Et for pgadmin-hackers@arkaria.postgresql.org; Mon, 19 Sep 2016 16:09:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bm18G-0006XB-20 for pgadmin-hackers@arkaria.postgresql.org; Mon, 19 Sep 2016 16:09:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bm18F-0006X1-MG for pgadmin-hackers@postgresql.org; Mon, 19 Sep 2016 16:09:23 +0000 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bm18C-00087z-J7 for pgadmin-hackers@postgresql.org; Mon, 19 Sep 2016 16:09:22 +0000 Received: by mail-it0-x22b.google.com with SMTP id n143so75314777ita.1 for ; Mon, 19 Sep 2016 09:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LbHeJNdRBsAGM4lB8BljrO5zjR3DAxQOjpARxJbUmWM=; b=k89WywoyhL5fQtxPtU5bxRbCiza4F2U2sCgj8drA0wUcyJ8lYxFPplWs8yRNHpWBXJ CnJBLXbkrDTqptwnrV1ZNyfsvAIC5uq+boG3wlJA4Av0nxdE88CdZUK71ALdpJcmN6rt 6VHpKwAS7mYxVgfxiOghOk00QgrgItX706Gxvsr9Vrnk8lJsl1d2cZ1aP4lZ1xkVSa+Q 5kidnd/jAaZ27uTB1rnFvNh4vUt0faNFlq2LCswhJRv2p1IA/WkZbEouDGoAQXMDXTcT eCWiY9hqSoZBWYDP/JfJJirxDrayaKODbDwlyO7iNv4Bfq1daNu95m1LwWoiyly3DIpX Ba7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LbHeJNdRBsAGM4lB8BljrO5zjR3DAxQOjpARxJbUmWM=; b=fWFN5+rien4ZYQz6ocqF6k+lJRqj59MKT0/2a4PXm4XSFaWfZ3WZQBuk8gz3fcsnXG I3TKsXPFfGvmRi/6jJrfwj0hQlJOuqwjT+WO/IiINTTe1aOt8aeKIrMMKbAsRtYc9ton 2pS64UtooL946p3ZtEs62v4y/Qz4Ry6MEbqNme/OcoTF0paJG6kUSSeZyecsveN+DviU pQrLOKv7oJlT/DhrtzqBPxghUmfuMhMe9WbL16XZOwfb6NrKT/XPIZCoxE+t1AkhAIL+ W/fxK2RqVepgZ9gAEVdQwe72zpy3xdQaZxqCg1T9hYKw8SIvZH+UK5whXSR1wbkxlHwB EjLg== X-Gm-Message-State: AE9vXwMgj+5EMVQ0nTR1ItMG6oOgnIOYxLAGfNenTbHRCmLDK6TZ7l15k8nyvYzVU9VamAYWiaTHI7Ab2f2yug== X-Received: by 10.36.249.129 with SMTP id l123mr11019269ith.103.1474301359820; Mon, 19 Sep 2016 09:09:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Mon, 19 Sep 2016 09:09:19 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 19 Sep 2016 17:09:19 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: Slickgrid loading issue in Query tool To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks, applied. On Mon, Sep 19, 2016 at 2:58 PM, Surinder Kumar wrote: > Hi > > Issue: > Slick-grid libraries loads when an instance of query tool is opened. But > sometimes it throws exception "jQuery is not defined" and it doesn't opens > up. > > Solution: > As per my understanding, In datagrid/index.html file, we set the order of > loading libraries such as > require(['jquery', 'pgadmin', 'pgadmin.sqleditor']) > but it still loads pgadmin.sqleditor.js file before jQuery for unknown > reason. > > To fix this, we load pgadmin.sqleditor.js file using require([], > function(){}) module loader which ensures that the code within function(){} > will be executed when pgadmin.sqleditor.js is loaded. > > Please find attache patch. > This issue is fixed by Ashesh Vashi. > > Thanks, > Surinder Kumar > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers