diff --git a/src/posts/newuser.js b/src/posts/newuser.js new file mode 100644 index 0000000000..9574a48c72 --- /dev/null +++ b/src/posts/newuser.js @@ -0,0 +1,16 @@ +'use strict'; + + +define('admin/settings/general', ['admin/settings'], function () { + var Module = {}; + + Module.init = function () { + $('input[data-type="newUserRestrictions"]').attr('disabled', true); + }; + + return Module; +}); + +$('[data-field="toggleUserRestrictions"]').on('click', function() { + // code to toggle disable attribute for inputs +}); \ No newline at end of file diff --git a/src/views/admin/settings/post.tpl b/src/views/admin/settings/post.tpl index 61404e3efd..ca4650beed 100644 --- a/src/views/admin/settings/post.tpl +++ b/src/views/admin/settings/post.tpl @@ -134,7 +134,7 @@