EXT-7879 FIXED (Edit Classified has duplicate \"Price for Ad\" and unnecessary help link)

- Restored deleted spinner and its label
- Added method to show\hide spinner and its label

Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/698/

--HG--
branch : product-engine
master
Paul Guslisty 2010-07-07 14:48:10 +03:00
parent 3db9ff8990
commit 9dbc0e2cce
4 changed files with 39 additions and 1 deletions

View File

@ -1792,6 +1792,7 @@ void LLPanelClassifiedEdit::onOpen(const LLSD& key)
enableVerbs(is_new);
enableEditing(is_new);
showEditing(!is_new);
resetDirty();
setInfoLoaded(false);
}
@ -2011,6 +2012,12 @@ void LLPanelClassifiedEdit::enableEditing(bool enable)
childSetEnabled("auto_renew", enable);
}
void LLPanelClassifiedEdit::showEditing(bool show)
{
childSetVisible("price_for_listing_label", show);
childSetVisible("price_for_listing", show);
}
std::string LLPanelClassifiedEdit::makeClassifiedName()
{
std::string name;

View File

@ -416,6 +416,8 @@ protected:
void enableEditing(bool enable);
void showEditing(bool show);
std::string makeClassifiedName();
void setPriceForListing(S32 price);

View File

@ -25,10 +25,11 @@ Remember, Classified fees are non-refundable.
<spinner
decimal_digits="0"
follows="left|top"
font="SansSerif"
halign="left"
height="23"
increment="1"
label_width="45"
label_width="50"
label="Price: L$ "
v_pad="10"
layout="topleft"

View File

@ -261,6 +261,34 @@
name="auto_renew"
top_pad="15"
width="250" />
<text
follows="left|top"
height="10"
layout="topleft"
left="10"
name="price_for_listing_label"
text_color="white"
top_pad="15"
value="Price for listing:"
width="250" />
<spinner
decimal_digits="0"
follows="left|top"
halign="left"
height="23"
increment="1"
label_width="20"
label="L$"
v_pad="10"
layout="topleft"
left="10"
value="50"
min_val="50"
max_val="99999"
name="price_for_listing"
top_pad="5"
tool_tip="Price for listing."
width="105" />
</panel>
</scroll_container>
<panel