Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Repeated options coming while clicking table rows

$
0
0

@Boo wrote:

Hello, I’m having the table row, for that I have wrote right click option method by using below code and it working fine,

click: function (event) {        
        var isConnected = false;
        if(event){
            var isConnected = true;
        }
        if(isConnected == true) {
        var eventResult = this.get('tableView').clickRow(event, this.get('object'));
        console.log(eventResult);
        if (eventResult !== false) {
            this.get('element').focus();
            $('.content-data, .action-menu, .managed-object-tools-icon.clickable').bind('contextmenu', function(e) {
                e.preventDefault();
                var k = $(e.currentTarget).closest('tr').prop('id');
                var l = $('#'+k).hasClass('inspected');
                if(l == true) {
                    var actionMenuContext = this.get('object');
                    var element = e.currentTarget;
                    this.get('controller').send('contentItemActionMenu', row.length ? row : element, element, actionMenuContext);
                    isConnected = false;
                    return false;
                }
            }.bind(this))
        }
        return eventResult;
      }
    }

But while right clicking on the multiple rows continuously, the same options coming repeatedly on the backside. It have to disappear while clicking new table row and appear as single newly option. I’m using ember 1.4.0. Your help will be appreciate. Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles