Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
09d37ae412
4 changed files with 17 additions and 5 deletions
|
@ -39,6 +39,7 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
Application_Model_Preference::SetAllow3rdPartyApi($values["preferences_general"]["thirdPartyApi"]);
|
Application_Model_Preference::SetAllow3rdPartyApi($values["preferences_general"]["thirdPartyApi"]);
|
||||||
Application_Model_Preference::SetTimezone($values["preferences_general"]["timezone"]);
|
Application_Model_Preference::SetTimezone($values["preferences_general"]["timezone"]);
|
||||||
Application_Model_Preference::SetWeekStartDay($values["preferences_general"]["weekStartDay"]);
|
Application_Model_Preference::SetWeekStartDay($values["preferences_general"]["weekStartDay"]);
|
||||||
|
Application_Model_Preference::SetEnableSystemEmail($values["preferences_general"]["enableSystemEmail"]);
|
||||||
Application_Model_Preference::SetSystemEmail($values["preferences_general"]["systemEmail"]);
|
Application_Model_Preference::SetSystemEmail($values["preferences_general"]["systemEmail"]);
|
||||||
|
|
||||||
Application_Model_Preference::SetAutoUploadRecordedShowToSoundcloud($values["preferences_soundcloud"]["UseSoundCloud"]);
|
Application_Model_Preference::SetAutoUploadRecordedShowToSoundcloud($values["preferences_soundcloud"]["UseSoundCloud"]);
|
||||||
|
|
|
@ -794,7 +794,13 @@ class Application_Model_Preference
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function GetEnableSystemEmail() {
|
public static function GetEnableSystemEmail() {
|
||||||
return self::GetValue("enable_system_email");
|
$v = self::GetValue("enable_system_email");
|
||||||
|
|
||||||
|
if ($v === "") {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function SetSystemEmail($value) {
|
public static function SetSystemEmail($value) {
|
||||||
|
|
|
@ -19,10 +19,12 @@
|
||||||
<?php echo $this->element->getElement('password') ?>
|
<?php echo $this->element->getElement('password') ?>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<?php if (Application_Model_Preference::GetEnableSystemEmail()): ?>
|
||||||
<dt id="reset-label" class="hidden"> </dt>
|
<dt id="reset-label" class="hidden"> </dt>
|
||||||
<dd id="reset-element" class="text-right">
|
<dd id="reset-element" class="text-right">
|
||||||
<a href="<?php echo $this->baseUrl('login/password-restore'); ?>" class="link reset">Reset password</a>
|
<a href="<?php echo $this->baseUrl('login/password-restore'); ?>" class="link reset">Reset password</a>
|
||||||
</dd>
|
</dd>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<dt id="submit-label"> </dt>
|
<dt id="submit-label"> </dt>
|
||||||
<dd id="submit-element">
|
<dd id="submit-element">
|
||||||
|
|
|
@ -420,6 +420,9 @@ var AIRTIME = (function(AIRTIME){
|
||||||
//remove any selected nodes before the draw.
|
//remove any selected nodes before the draw.
|
||||||
"fnPreDrawCallback": function( oSettings ) {
|
"fnPreDrawCallback": function( oSettings ) {
|
||||||
|
|
||||||
|
//make sure any dragging helpers are removed or else they'll be stranded on the screen.
|
||||||
|
$("#draggingContainer").remove();
|
||||||
|
|
||||||
//disable jump to current button.
|
//disable jump to current button.
|
||||||
AIRTIME.button.disableButton("sb-button-delete");
|
AIRTIME.button.disableButton("sb-button-delete");
|
||||||
//disable jump to current button.
|
//disable jump to current button.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue