Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:05:03+00:00 2026-06-18T06:05:03+00:00

http://jsfiddle.net/herrturtur/ExWFH/ To try this: click the plus button, double click the newly created name

  • 0

http://jsfiddle.net/herrturtur/ExWFH/

To try this:

  1. click the plus button,
  2. double click the newly created name field,
  3. fill something in for the fields
  4. press Enter.

The era fields (from and until) get displayed properly, but aren’t saved (reload to see the effect) and the Name field isn’t updated at all.

I call this.model.save() after set()ting the attributes in NameView’s close function (triggered by Enter-keypress) in line 153.

close: function(e){ 
    this.$el.removeClass('editing');
    this.model.set({
        value: this.$('.name-value').val(), 
        from: this.model.from, // this is saved in the 
        until: this.model.until
    });

    this.model.save();

    if(this.eraView.$el.attr('editing')){
        this.eraView.close();
    }
    this.render();
},

Could someone tell me what I’m doing wrong?

On top of everything, I get a TypeError: Illegal Invocation in Chrome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:05:05+00:00Added an answer on June 18, 2026 at 6:05 am

    The issue that you’re having is when calling the close function.

    Within your close function, you’re calling itself so it seems like a loop of redundancy.

    JS Bin

    On your karass.EraView, you’re also triggering the same function within the function which is unnecessary. I would suggest renaming it to a different function that corresponds to the intent of the action.

    this.trigger('close');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/VTD9P/2/ $(button).click(function(){ $(body).append('<div class=vidminclose>X</div>'); }); $(.vidminclose).click(function(){ $(this).remove(); }); ​ ​why is it when i
http://jsfiddle.net/TN6wW/3/ Trying to get the Click button to set the margins of the mainImage
http://jsfiddle.net/cYmxB/ $('.change').click(function() { $('.link').each(function(e) { var color = this.className.match(/color-\w+/gi); alert(color); }); });​ I'd basically
http://jsfiddle.net/nFFuD/ I'm trying to animate the search field in this example using jquery, making
http://jsfiddle.net/nWqYL/2/embedded/result/ I've been working on fixing some issues with this prototype site. Myself and
http://jsfiddle.net/NV6Cr/1/ If you click Create Canvas, it'll draw the SVG text at the bottom
http://jsfiddle.net/mJxn4/ This is very odd: I have a few lines of text wrapped in
http://jsfiddle.net/JamesKyle/HQDu6/ I've created a short function based on Mathias Bynens Optimization of the Google
http://jsfiddle.net/CbL7W/ example of scroll event behavior. I have this script that is working correctly
http://jsfiddle.net/asif097/AzRtC/3 As you can see there are two buttons when the 1st button is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.