Git Product home page Git Product logo

Comments (4)

hyukjin-son avatar hyukjin-son commented on June 8, 2024

두가지 부분을 확인해 보시기 바랍니다.

  1. ajaxForm은 jQuery Plugin이므로 jQuery가 로드되고 나서 로드되어야 합니다. 따라서 app-container.js를 수정하실 때, path 추가 뿐 아니라 shim 에서 deps 에 jquery를 추가해야 합니다. bootstrap 부분을 따라하시면 되겠습니다.
  2. add.js 에서 define 할 때 'jquery' 가 빠져있지 않은지 확인해 보시기 바랍니다.

from cornerstone-framework.

zipnagi avatar zipnagi commented on June 8, 2024

매번 감사드립니다.

1번의 "path 추가 뿐 아니라 shim 에서 deps 에 jquery를 추가"가 무슨 뜻인지요.
2번은 define 전체 내용입니다.

define([
    'model/user', 'backbone', 'jquery', 'form-view', 'view/alert-validation', 'template!tmpl/add',
    'ajaxForm',
    'widget-plugins',
], function( User, Backbone, $, FormView, AlertValidationView, template ) {

from cornerstone-framework.

hyukjin-son avatar hyukjin-son commented on June 8, 2024

app-container.js 를 수정하실 때 paths 속성에 ajaxForm을 추가하신것 아닌가요? paths 속성 다음에 보면 shim 속성이 있는데 여기서 모듈간 의존성을 설정합니다. 'ajaxForm': { deps: [ 'jquery' ] } 을 추가해 주시면 됩니다.

from cornerstone-framework.

zipnagi avatar zipnagi commented on June 8, 2024

감사합니다.

from cornerstone-framework.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.