Skip to content
Snippets Groups Projects
Commit ad8478c4 authored by Jonathan Yap's avatar Jonathan Yap
Browse files

STORM-1892 Add Apply button to the edit content permission floater

parent 90547ff4
No related branches found
No related tags found
No related merge requests found
......@@ -629,6 +629,7 @@ Jonathan Yap
STORM-1809
STORM-1793
STORM-1810
STORM-1892
Kadah Coba
STORM-1060
Jondan Lundquist
......
......@@ -57,6 +57,7 @@ LLFloaterBulkPermission::LLFloaterBulkPermission(const LLSD& seed)
mDone(FALSE)
{
mID.generate();
mCommitCallbackRegistrar.add("BulkPermission.Ok", boost::bind(&LLFloaterBulkPermission::onOkBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.Apply", boost::bind(&LLFloaterBulkPermission::onApplyBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.Close", boost::bind(&LLFloaterBulkPermission::onCloseBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.CheckAll", boost::bind(&LLFloaterBulkPermission::onCheckAll, this));
......@@ -144,6 +145,12 @@ void LLFloaterBulkPermission::inventoryChanged(LLViewerObject* viewer_object,
}
}
void LLFloaterBulkPermission::onOkBtn()
{
doApply();
closeFloater();
}
void LLFloaterBulkPermission::onApplyBtn()
{
doApply();
......
......@@ -72,6 +72,7 @@ class LLFloaterBulkPermission : public LLFloater, public LLVOInventoryListener
bool is_new);
void onCloseBtn();
void onOkBtn();
void onApplyBtn();
void onCommitCopy();
void onCheckAll() { doCheckUncheckAll(TRUE); }
......
......@@ -6,7 +6,7 @@
layout="topleft"
name="floaterbulkperms"
help_topic="floaterbulkperms"
title="EDIT CONTENT PERMISSIONS"
title="ADJUST CONTENT PERMISSIONS"
width="410">
<floater.string
name="nothing_to_modify_text">
......@@ -192,7 +192,7 @@
name="newperms"
top="90"
width="250">
New Content Permissions
Adjust Content Permissions To
</text>
<text
type="string"
......@@ -292,9 +292,20 @@
height="23"
label="OK"
layout="topleft"
left="205"
name="apply"
left="110"
name="ok"
top_pad="10"
width="90">
<button.commit_callback
function="BulkPermission.Ok"/>
</button>
<button
follows="left|top"
height="23"
label="Apply"
layout="topleft"
left_pad="5"
name="apply"
width="90">
<button.commit_callback
function="BulkPermission.Apply"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment