windows 10 pro office 2019 pro office 365 pro windows 10 home windows 10 enterprise office 2019 home and business office 2016 pro windows 10 education visio 2019 microsoft project 2019 microsoft project 2016 visio professional 2016 windows server 2012 windows server 2016 windows server 2019 Betriebssysteme office software windows server https://softhier.com/ instagram takipçi instagram beğeni instagram görüntüleme instagram otomatik beğeni facebook beğeni facebook sayfa beğenisi facebook takipçi twitter takipçi twitter beğeni twitter retweet youtube izlenme youtube abone instagram

backbone-form: how to show the jquery dialog for list-item editing over a colorbox dialog?

Asked By: Anonymous

I everybody,
I guess my quesiton is trivial but I’m getting stuck and aI need to share my doubts.

I use backbone.js and backbone-form (thanks to Charles Davison for creating this great tool).

I open the backbone-form inside a colorbox dialog, and it works fine. Here’s the code:

        [...]
        this.form=new Backbone.Form({
            data: json_infos.RI, //Data to populate the form with
            schema: self.getSchema(json_infos.RI)
            }).render();
        $(this.form.el).prepend("<center><b>"+self.renderIMG()+self.model.get('ri_name')+"</b></center>").append('<div id="updatebtn">OK, Save all Changes!</div>');
        $(this.form.el).delegate('#updatebtn','click',  this.saveRI);

        $.colorbox({
            html:self.form.el,
            transition: "elastic",
            speed:400,
            scrolling: true,
            width: "650px",
            height: "600px"
            });
        },

In this popup box containing the form I’ve the problem: when I want to add/remove/update an element of a list, another jquery dialog is opened but NOT OVER THE COLORBOX.

I read many jquery documentation on DOM traversing, selectors, and I also individuated the code which I suppose should be modified, it’s in the jquery-ui-editors.js plugin, at lines 348, the ‘openEditor’ function

    openEditor: function(data, callback) {
        var self = this,
            schema = this.schema,
            listType = schema.listType || 'Text';

        var editor = Form.helpers.createEditor(listType, {
            key: '',
            schema: schema,
            value: data,
         }).render();


        var container = $(this.editorTemplate());

        //~ $(self.el).append($('.bbf-list-editor', container).html(editor.el));
        $('.bbf-list-editor', container).html(editor.el);

        var close = function() {
            container.dialog('close');

            editor.remove();
            container.remove();
        };


        $(container).dialog({
            resizable:  false,
            modal:      true,
            width:      500,
            title:      data ? 'Edit item' : 'New item',
            buttons: {
                'OK': function() {
                    callback(editor.getValue());
                    close();
                }, 
                'Cancel': close
            }
        });
    },

In this latter code I don’t understand where and how we say to javascript “please create the element under the body tag and pop this up”.

I need, indeed, to open it not over the ‘body’ but over the parent of the element which triggers the dialog.

Can anybody help me?
If you need more details I’ll be glad to add them.
Thanks in advance.

————UPDATE——————

I solved the issue using the z-index, as suggested by Sander.

The z-index must be modified NOT IN THE CSS but in the part of the code where the popup is opened. So simply add

zIndex:     100000000, 

in the jquery-ui popup options in jquery-ui-editors line 371.


Solution

Answered By: Anonymous

I solved the issue using the z-index, as suggested by Sander.

The z-index must be modified NOT IN THE CSS but in the part of the code where the popup is opened. So simply add

zIndex: 100000000,
in the jquery-ui popup options in jquery-ui-editors line 371.

techinplanet staff


Windows 10 Kaufen Windows 10 Pro Office 2019 Kaufen Office 365 Lizenz Windows 10 Home Lizenz Office 2019 Home Business Kaufen windows office 365 satın al follower kaufen instagram follower kaufen porno
Alanya escort Manavgat escort Fethiye escort Kemer escort Didim escort http://www.kadinescort.net Gaziantep escort Denizli escort Adana escort Hatay escort Aydın escort İzmir escort Ankara escort Antalya escort Bursa escort İstanbul escort Kocaeli escort Konya escort Muğla escort Malatya escort Kayseri escort Mersin escort Samsun escort Sinop escort Tekirdağ escort Eskişehir escort Yalova escort Rize escort Amasya escort Balıkesir escort Çanakkale escort Bolu escort Erzincan escort Şırnak escort Van escort Yozgat escort Zonguldak escort Afyon escort Adıyaman escort Bilecik escort Aksaray escort Ağri escort Bitlis escort Siirt escort Çorum escort Burdur escort Diyarbakir escort Edirne escort Düzce escort Erzurum escort Kırklareli escort Giresun escort Kilis escort Kars escort Karabük escort Kırıkkale escort Mardin escort Kırşehir escort Maraş escort Manisa escort Muş escort Kastamonu escort Ordu escort Nevşehir escort Sakarya escort Osmaniye escort Şanliurfa escort Sivas escort Trabzon escort Tokat escort Ardahan escort Bartın escort Karaman escort Batman escort Bayburt escort Bingöl escort Elaziğ escort Gümüşhane escort Hakkari escort Isparta escort Uşak escort Igdır escort