mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
removed non-functional save button from category whitelist modal
This commit is contained in:
@@ -252,19 +252,31 @@ define(function() {
|
|||||||
liEl = document.createElement('li'),
|
liEl = document.createElement('li'),
|
||||||
x, userObj;
|
x, userObj;
|
||||||
|
|
||||||
for(x=0;x<readLength;x++) {
|
if (readLength > 0) {
|
||||||
userObj = privilegeList['+r'][x];
|
for(x=0;x<readLength;x++) {
|
||||||
liEl.setAttribute('data-uid', userObj.uid);
|
userObj = privilegeList['+r'][x];
|
||||||
|
liEl.setAttribute('data-uid', userObj.uid);
|
||||||
|
|
||||||
liEl.innerHTML = '<img src="' + userObj.picture + '" title="' + userObj.username + '" />';
|
liEl.innerHTML = '<img src="' + userObj.picture + '" title="' + userObj.username + '" />';
|
||||||
|
readFrag.appendChild(liEl.cloneNode(true));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
liEl.className = 'empty';
|
||||||
|
liEl.innerHTML = 'No users are in this list';
|
||||||
readFrag.appendChild(liEl.cloneNode(true));
|
readFrag.appendChild(liEl.cloneNode(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(x=0;x<writeLength;x++) {
|
if (writeLength > 0) {
|
||||||
userObj = privilegeList['+w'][x];
|
for(x=0;x<writeLength;x++) {
|
||||||
liEl.setAttribute('data-uid', userObj.uid);
|
userObj = privilegeList['+w'][x];
|
||||||
|
liEl.setAttribute('data-uid', userObj.uid);
|
||||||
|
|
||||||
liEl.innerHTML = '<img src="' + userObj.picture + '" title="' + userObj.username + '" />';
|
liEl.innerHTML = '<img src="' + userObj.picture + '" title="' + userObj.username + '" />';
|
||||||
|
writeFrag.appendChild(liEl.cloneNode(true));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
liEl.className = 'empty';
|
||||||
|
liEl.innerHTML = 'No users are in this list';
|
||||||
writeFrag.appendChild(liEl.cloneNode(true));
|
writeFrag.appendChild(liEl.cloneNode(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -157,9 +157,6 @@
|
|||||||
</form>
|
</form>
|
||||||
<ul class="search-results"></ul>
|
<ul class="search-results"></ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" id="save-permissions" href="#" class="btn btn-primary btn-lg btn-block">Save Permissions</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user