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 ...@@ -629,6 +629,7 @@ Jonathan Yap
STORM-1809 STORM-1809
STORM-1793 STORM-1793
STORM-1810 STORM-1810
STORM-1892
Kadah Coba Kadah Coba
STORM-1060 STORM-1060
Jondan Lundquist Jondan Lundquist
......
...@@ -57,6 +57,7 @@ LLFloaterBulkPermission::LLFloaterBulkPermission(const LLSD& seed) ...@@ -57,6 +57,7 @@ LLFloaterBulkPermission::LLFloaterBulkPermission(const LLSD& seed)
mDone(FALSE) mDone(FALSE)
{ {
mID.generate(); mID.generate();
mCommitCallbackRegistrar.add("BulkPermission.Ok", boost::bind(&LLFloaterBulkPermission::onOkBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.Apply", boost::bind(&LLFloaterBulkPermission::onApplyBtn, this)); mCommitCallbackRegistrar.add("BulkPermission.Apply", boost::bind(&LLFloaterBulkPermission::onApplyBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.Close", boost::bind(&LLFloaterBulkPermission::onCloseBtn, this)); mCommitCallbackRegistrar.add("BulkPermission.Close", boost::bind(&LLFloaterBulkPermission::onCloseBtn, this));
mCommitCallbackRegistrar.add("BulkPermission.CheckAll", boost::bind(&LLFloaterBulkPermission::onCheckAll, this)); mCommitCallbackRegistrar.add("BulkPermission.CheckAll", boost::bind(&LLFloaterBulkPermission::onCheckAll, this));
...@@ -144,6 +145,12 @@ void LLFloaterBulkPermission::inventoryChanged(LLViewerObject* viewer_object, ...@@ -144,6 +145,12 @@ void LLFloaterBulkPermission::inventoryChanged(LLViewerObject* viewer_object,
} }
} }
void LLFloaterBulkPermission::onOkBtn()
{
doApply();
closeFloater();
}
void LLFloaterBulkPermission::onApplyBtn() void LLFloaterBulkPermission::onApplyBtn()
{ {
doApply(); doApply();
......
...@@ -72,6 +72,7 @@ class LLFloaterBulkPermission : public LLFloater, public LLVOInventoryListener ...@@ -72,6 +72,7 @@ class LLFloaterBulkPermission : public LLFloater, public LLVOInventoryListener
bool is_new); bool is_new);
void onCloseBtn(); void onCloseBtn();
void onOkBtn();
void onApplyBtn(); void onApplyBtn();
void onCommitCopy(); void onCommitCopy();
void onCheckAll() { doCheckUncheckAll(TRUE); } void onCheckAll() { doCheckUncheckAll(TRUE); }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
layout="topleft" layout="topleft"
name="floaterbulkperms" name="floaterbulkperms"
help_topic="floaterbulkperms" help_topic="floaterbulkperms"
title="EDIT CONTENT PERMISSIONS" title="ADJUST CONTENT PERMISSIONS"
width="410"> width="410">
<floater.string <floater.string
name="nothing_to_modify_text"> name="nothing_to_modify_text">
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
name="newperms" name="newperms"
top="90" top="90"
width="250"> width="250">
New Content Permissions Adjust Content Permissions To
</text> </text>
<text <text
type="string" type="string"
...@@ -292,9 +292,20 @@ ...@@ -292,9 +292,20 @@
height="23" height="23"
label="OK" label="OK"
layout="topleft" layout="topleft"
left="205" left="110"
name="apply" name="ok"
top_pad="10" 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"> width="90">
<button.commit_callback <button.commit_callback
function="BulkPermission.Apply"/> 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