Merge branch 'develop' of github.com:octobercms/october into develop

This commit is contained in:
alekseybobkov 2016-02-04 18:00:42 -08:00
commit bfb0fa1671
3 changed files with 3 additions and 2 deletions

View File

@ -168,6 +168,7 @@ class Controller
MaintenanceSettings::get('is_enabled', false) &&
!BackendAuth::getUser()
) {
$this->setStatusCode(503);
$page = Page::loadCached($this->theme, MaintenanceSettings::get('cms_page'));
}

View File

@ -25,7 +25,7 @@
if (this.options.triggerCondition.indexOf('value') == 0) {
var match = this.options.triggerCondition.match(/[^[\]]+(?=])/g)
this.triggerCondition = 'value'
this.triggerConditionValue = (match) ? match : ""
this.triggerConditionValue = (match) ? match : [""]
}
this.triggerParent = this.options.triggerClosestParent !== undefined

View File

@ -2891,7 +2891,7 @@ throw new Error('Trigger action is not specified.')
this.triggerCondition=this.options.triggerCondition
if(this.options.triggerCondition.indexOf('value')==0){var match=this.options.triggerCondition.match(/[^[\]]+(?=])/g)
this.triggerCondition='value'
this.triggerConditionValue=(match)?match:""}
this.triggerConditionValue=(match)?match:[""]}
this.triggerParent=this.options.triggerClosestParent!==undefined?$el.closest(this.options.triggerClosestParent):undefined
if(this.triggerCondition=='checked'||this.triggerCondition=='unchecked'||this.triggerCondition=='value'){$(document).on('change',this.options.trigger,$.proxy(this.onConditionChanged,this))}
var self=this