diff --git a/public/app.js b/public/app.js index 7e98375..c21cf21 100644 --- a/public/app.js +++ b/public/app.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + (function() { 'use strict'; diff --git a/public/initializer.js b/public/initializer.js index 395f20c..aaf8c9f 100644 --- a/public/initializer.js +++ b/public/initializer.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + (function() { 'use strict'; diff --git a/public/lib/noosfero-root.js b/public/lib/noosfero-root.js index cd3c8bf..3280f1c 100644 --- a/public/lib/noosfero-root.js +++ b/public/lib/noosfero-root.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('NoosferoRoot', function() { 'use strict'; diff --git a/public/lib/select-element.js b/public/lib/select-element.js index 26880ae..f342a2b 100644 --- a/public/lib/select-element.js +++ b/public/lib/select-element.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('SelectElement', function() { 'use strict'; diff --git a/public/lib/select-field-choices.js b/public/lib/select-field-choices.js index 095d4e1..21711c5 100644 --- a/public/lib/select-field-choices.js +++ b/public/lib/select-field-choices.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('SelectFieldChoices', ['jquery', 'SelectElement'], function($, SelectElement) { 'use strict'; diff --git a/public/views/complete-registration.js b/public/views/complete-registration.js index 81dd745..541260c 100644 --- a/public/views/complete-registration.js +++ b/public/views/complete-registration.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('CompleteRegistration', ['jquery', 'NoosferoRoot'], function($, NoosferoRoot) { 'use strict'; diff --git a/public/views/control-panel.js b/public/views/control-panel.js index d89a588..f0aecb6 100644 --- a/public/views/control-panel.js +++ b/public/views/control-panel.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('ControlPanel', ['jquery'], function($) { 'use strict'; diff --git a/public/views/create-institution.js b/public/views/create-institution.js index 354295c..e9f7777 100644 --- a/public/views/create-institution.js +++ b/public/views/create-institution.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('CreateInstitution', ['jquery', 'NoosferoRoot', 'SelectElement'], function($, NoosferoRoot, SelectElement) { 'use strict'; diff --git a/public/views/gov-user-comments-extra-fields.js b/public/views/gov-user-comments-extra-fields.js index d302437..4521aff 100644 --- a/public/views/gov-user-comments-extra-fields.js +++ b/public/views/gov-user-comments-extra-fields.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define("GovUserCommentsExtraFields", ['jquery','CreateInstitution'], function($,CreateInstitution) { function set_events() { diff --git a/public/views/new-community.js b/public/views/new-community.js index b665e8f..0de70c7 100644 --- a/public/views/new-community.js +++ b/public/views/new-community.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define("NewCommunity", ['jquery'], function($) { function replace_mandatory_message() { @@ -8,7 +10,7 @@ modulejs.define("NewCommunity", ['jquery'], function($) { function remove_image_builder_text() { $("label:contains('Image builder')").hide(); } - + function hide_organization_template_fields(){ $('#template-options').hide(); } diff --git a/public/views/user-edit-profile.js b/public/views/user-edit-profile.js index c92c987..049647d 100644 --- a/public/views/user-edit-profile.js +++ b/public/views/user-edit-profile.js @@ -1,3 +1,5 @@ +/* globals modulejs */ + modulejs.define('UserEditProfile', ['jquery', 'SelectElement', 'SelectFieldChoices', 'CreateInstitution'], function($, SelectElement, SelectFieldChoices, CreateInstitution) { 'use strict'; -- libgit2 0.21.2