瀏覽代碼

HUE-1658 [oozie] Cron like scheduling

Replace old double dropdown by an text crontab.
Try to go convert old frequency format to the new crontab one.
Adding a new coordinator util lib as it needs to work on both edit and create
coordinator tab.

Dashboard should detect if the coordinator is using the crontab format and
try display it in english with the plugin (todo in another jira)
Choice was made to remove the previous form. Frequencies like every 3 days
is a bit more complicated are not supported by the plugin and some like
every 2 days are not supported by cron AFAIK.

Maybe add the advanced options to use the old dropdown.
Romain Rigaux 12 年之前
父節點
當前提交
140dc40d3c

+ 4 - 0
NOTICE.txt

@@ -15,3 +15,7 @@ Prasanthj (https://github.com/prasanthj/pig-codemirror-2)
 
 This product includes software developed by
 Ryan Niemeyer (https://github.com/rniemeyer/knockout-sortable)
+
+This product includes software developed by
+Arnaud Buathier (http://www.arnapou.net/2012-07-jquery-cron/)
+

+ 0 - 1
README.rst

@@ -170,4 +170,3 @@ License
 Apache License, Version 2.0
 http://www.apache.org/licenses/LICENSE-2.0
 
-.. image:: https://ga-beacon.appspot.com/UA-37637545-2/hue/index?pixel

+ 1 - 1
apps/oozie/src/oozie/forms.py

@@ -338,7 +338,7 @@ class CoordinatorForm(forms.ModelForm):
 
   class Meta:
     model = Coordinator
-    exclude = ('owner', 'deployment_dir')
+    exclude = ('owner', 'deployment_dir', 'frequency_number', 'frequency_unit')
     widgets = {
       'description': forms.TextInput(attrs={'class': 'span5'}),
       'parameters': forms.widgets.HiddenInput(),

+ 27 - 2
apps/oozie/src/oozie/models.py

@@ -1379,9 +1379,9 @@ DATASET_FREQUENCY = ['MINUTE', 'HOUR', 'DAY', 'MONTH', 'YEAR']
 class Coordinator(Job):
   frequency_number = models.SmallIntegerField(default=1, choices=FREQUENCY_NUMBERS, verbose_name=_t('Frequency number'),
                                               help_text=_t('The number of units of the rate at which '
-                                                           'data is periodically created.'))
+                                                           'data is periodically created.')) # unused
   frequency_unit = models.CharField(max_length=20, choices=FREQUENCY_UNITS, default='days', verbose_name=_t('Frequency unit'),
-                                    help_text=_t('The unit of the rate at which data is periodically created.'))
+                                    help_text=_t('The unit of the rate at which data is periodically created.')) # unused
   timezone = models.CharField(max_length=24, choices=TIMEZONES, default='America/Los_Angeles', verbose_name=_t('Timezone'),
                               help_text=_t('The timezone of the coordinator. Only used for managing the daylight saving time changes when combining several coordinators.'))
   start = models.DateTimeField(default=datetime.today(), verbose_name=_t('Start'),
@@ -1578,6 +1578,31 @@ class Coordinator(Job):
   def sla_jsescaped(self):
     return json.dumps(self.sla, cls=JSONEncoderForHTML)
 
+  @property
+  def cron_frequency(self):
+    if 'cron_frequency' in self.data_dict:
+      return self.data_dict['cron_frequency']
+    else:
+      # Backward compatibility
+      freq = '0 0 * * *'
+      if self.frequency_number == 1:
+        if self.frequency_unit == 'MINUTES':
+          freq = '* * * * *'
+        elif self.frequency_unit == 'HOURS':
+          freq = '0 * * * *'
+        elif self.frequency_unit == 'DAYS':
+          freq = '0 0 * * *'
+        elif self.frequency_unit == 'MONTH':
+          freq = '0 0 * * *'
+      return {'frequency': freq, 'isAdvancedCron': False}
+
+
+  @cron_frequency.setter
+  def cron_frequency(self, cron_frequency):
+    data_ = self.data_dict
+    data_['cron_frequency'] = cron_frequency
+    self.data = json.dumps(data_)
+
 
 class DatasetManager(models.Manager):
   def can_read_or_exception(self, request, dataset_id):

+ 39 - 0
apps/oozie/src/oozie/templates/editor/coordinator_utils.mako

@@ -0,0 +1,39 @@
+## Licensed to Cloudera, Inc. under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  Cloudera, Inc. licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+
+<%!
+  from django.utils.translation import ugettext as _
+  from liboozie.oozie_api import get_oozie
+%>
+
+
+<%def name="frequency_fields()">
+              <div class="control-group" rel="popover" >
+                <label class="control-label">${ _('When') }</label>
+                <div class="controls">
+                  <div class="row-fluid">
+                    <div class="span9">
+                      <input data-bind="visible: isAdvancedCron" id="coord-frequency" name="cron_frequency" class="pull-right"/>
+                      <span data-bind="visible: isAdvancedCron" class="pull-right" style="padding-right:20px">${ _('Crontab') }</span>&nbsp;
+                      <input type="checkbox" name="isAdvancedCron" data-bind="checked: isAdvancedCron" /> (${ _('advanced') })
+                    </div>
+                    <div class="span3">
+                    </div>
+                  </div>
+                  <span class="help-block">${ _('The time frequency at which interval a workflow should be submitted by the coordinator. For example, once a day, every Monday at midnight, every week days, every three days...') }</span>
+                </div>
+            </div>
+</%def>

+ 12 - 9
apps/oozie/src/oozie/templates/editor/create_coordinator.mako

@@ -21,6 +21,8 @@
 
 <%namespace name="layout" file="../navigation-bar.mako" />
 <%namespace name="utils" file="../utils.inc.mako" />
+<%namespace name="coordinator_utils" file="coordinator_utils.mako" />
+
 
 ${ commonheader(_("Create Coordinator"), "oozie", user) | n,unicode }
 ${ layout.menubar(section='coordinators') }
@@ -66,7 +68,7 @@ ${ layout.menubar(section='coordinators') }
         <div class="steps">
 
           <div id="step1" class="stepDetails">
-            <div class="alert alert-info"><h3>${ _('Coordinator data') }</h3></div>
+            <div class="alert alert-info"><h3>${ _('What to schedule') }</h3></div>
             <div class="fieldWrapper">
               ${ utils.render_field_no_popover(coordinator_form['name'], extra_attrs = {'validate':'true'}) }
               ${ utils.render_field_no_popover(coordinator_form['description']) }
@@ -84,14 +86,7 @@ ${ layout.menubar(section='coordinators') }
           <div id="step2" class="stepDetails hide">
             <div class="alert alert-info"><h3>${ _('Frequency') }</h3></div>
             <div class="fieldWrapper">
-              <div class="row-fluid">
-                <div class="span6">
-                  ${ utils.render_field_no_popover(coordinator_form['frequency_number']) }
-                </div>
-                <div class="span6">
-                  ${ utils.render_field_no_popover(coordinator_form['frequency_unit']) }
-                </div>
-              </div>
+              ${ coordinator_utils.frequency_fields() }
             </div>
             <div class="fieldWrapper">
               <div class="row-fluid">
@@ -120,9 +115,17 @@ ${ layout.menubar(section='coordinators') }
   </div>
 </div>
 
+<link rel="stylesheet" type="text/css" href="/static/ext/jqCron/jqCron.css" />
+<script type="text/javascript" src="/static/ext/jqCron/jqCron.min.js"></script>
+
+<script type="text/javascript" src="/oozie/static/js/coordinator.js"></script>
+
+
 <script type="text/javascript" charset="utf-8">
   $(document).ready(function () {
 
+    initCoordinator(${ coordinator_frequency | n,unicode });
+
     var currentStep = "step1";
 
     routie({

+ 23 - 17
apps/oozie/src/oozie/templates/editor/edit_coordinator.mako

@@ -23,6 +23,8 @@
 <%namespace name="utils" file="../utils.inc.mako" />
 <%namespace name="properties" file="coordinator_properties.mako" />
 <%namespace name="coordinator_data" file="create_coordinator_data.mako" />
+<%namespace name="coordinator_utils" file="coordinator_utils.mako" />
+
 
 ${ commonheader(_("Edit Coordinator"), "oozie", user) | n,unicode }
 ${ layout.menubar(section='coordinators') }
@@ -68,14 +70,14 @@ ${ layout.menubar(section='coordinators') }
           <li><a href="#listDataset"><i class="fa fa-cloud"></i> ${ _('Show existing') }</a></li>
 
           % if coordinator.is_editable(user):
-              <li class="nav-header">${ _('History') }</li>
-              <li><a href="#listHistory"><i class="fa fa-archive"></i> ${ _('Show history') }</a></li>
+            <li class="nav-header">${ _('History') }</li>
+            <li><a href="#listHistory"><i class="fa fa-archive"></i> ${ _('Show history') }</a></li>
           % endif
 
           % if coordinator:
-              <li class="nav-header">${ _('Actions') }</li>
-              <li><a id="submit-btn" href="javascript:void(0)" data-submit-url="${ url('oozie:submit_coordinator', coordinator=coordinator.id) }" title="${ _('Submit this coordinator') }" rel="tooltip" data-placement="right"><i class="fa fa-play"></i> ${ _('Submit') }</a></li>
-              <li><a id="clone-btn" href="javascript:void(0)" data-clone-url="${ url('oozie:clone_coordinator', coordinator=coordinator.id) }" title="${ _('Copy this coordinator') }" rel="tooltip" data-placement="right"><i class="fa fa-files-o"></i> ${ _('Copy') }</a></li>
+            <li class="nav-header">${ _('Actions') }</li>
+            <li><a id="submit-btn" href="javascript:void(0)" data-submit-url="${ url('oozie:submit_coordinator', coordinator=coordinator.id) }" title="${ _('Submit this coordinator') }" rel="tooltip" data-placement="right"><i class="fa fa-play"></i> ${ _('Submit') }</a></li>
+            <li><a id="clone-btn" href="javascript:void(0)" data-clone-url="${ url('oozie:clone_coordinator', coordinator=coordinator.id) }" title="${ _('Copy this coordinator') }" rel="tooltip" data-placement="right"><i class="fa fa-files-o"></i> ${ _('Copy') }</a></li>
           % endif
 
         </ul>
@@ -101,7 +103,7 @@ ${ layout.menubar(section='coordinators') }
 
         <div class="steps">
           <div id="step1" class="stepDetails">
-            <div class="alert alert-info"><h3>${ _('Coordinator data') }</h3></div>
+            <div class="alert alert-info"><h3>${ _('What to schedule') }</h3></div>
             <div class="fieldWrapper">
               ${ utils.render_field_no_popover(coordinator_form['name'], extra_attrs = {'validate':'true'}) }
               ${ utils.render_field_no_popover(coordinator_form['description']) }
@@ -119,20 +121,15 @@ ${ layout.menubar(section='coordinators') }
             <div class="alert alert-info"><h3>${ _('Frequency') }</h3></div>
             <div class="fieldWrapper">
               <div class="row-fluid">
-                <div class="span6">
-                ${ utils.render_field_no_popover(coordinator_form['frequency_number']) }
-                </div>
-                <div class="span6">
-                ${ utils.render_field_no_popover(coordinator_form['frequency_unit']) }
+                <div class="alert alert-warning">
+                  ${ _('UTC time only. (e.g. if you want 10pm PST (UTC+8) set it 8 hours later to 6am the next day.') }
                 </div>
               </div>
             </div>
             <div class="fieldWrapper">
-              <div class="row-fluid">
-                  <div class="alert alert-warning">
-                    ${ _('UTC time only. (e.g. if you want 10pm PST (UTC+8) set it 8 hours later to 6am the next day.') }
-                  </div>
-              </div>
+              ${ coordinator_utils.frequency_fields() }
+            </div>
+            <div class="fieldWrapper">
               <div class="row-fluid">
                 <div class="span6">
                 ${ utils.render_field_no_popover(coordinator_form['start']) }
@@ -141,7 +138,7 @@ ${ layout.menubar(section='coordinators') }
                 ${ utils.render_field_no_popover(coordinator_form['end']) }
                 </div>
               </div>
-            ${ utils.render_field_no_popover(coordinator_form['timezone']) }
+              ${ utils.render_field_no_popover(coordinator_form['timezone']) }
             </div>
           </div>
 
@@ -445,6 +442,11 @@ ${ layout.menubar(section='coordinators') }
 <form class="form-horizontal" id="add-dataset-form"></form>
 <form class="form-horizontal" id="edit-dataset-form"></form>
 
+<link rel="stylesheet" type="text/css" href="/static/ext/jqCron/jqCron.css" />
+<script type="text/javascript" src="/static/ext/jqCron/jqCron.min.js"></script>
+
+<script type="text/javascript" src="/oozie/static/js/coordinator.js"></script>
+
 
 % if coordinator.id:
   <div class="modal hide" id="edit-dataset-modal" style="z-index:1500;width:850px"></div>
@@ -609,10 +611,14 @@ ${ layout.menubar(section='coordinators') }
         self.sla = ko.mapping.fromJS(${ coordinator.sla_jsescaped | n,unicode });
       };
 
+    initCoordinator(${ coordinator_frequency | n,unicode });
+
       window.slaModel = new slaModel();
       ko.applyBindings(window.slaModel, document.getElementById('slaEditord'));
 
       window.viewModel.isSaveVisible = ko.observable(false);
+
+
       ko.applyBindings(window.viewModel, $('#bottom-nav')[0]);
       ko.applyBindings(window.viewModel, $('#properties-settings')[0]);
       ko.applyBindings(window.viewModel, $('#step3')[0]);

+ 1 - 1
apps/oozie/src/oozie/templates/editor/gen/coordinator.xml.mako

@@ -51,7 +51,7 @@
 
 
 <coordinator-app name="${ coord.name }"
-  frequency="${ coord.frequency }"
+  frequency="${ coord.cron_frequency['frequency'] }"
   start="${ coord.start_utc }" end="${ coord.end_utc }" timezone="${ coord.timezone }"
   xmlns="${ 'uri:oozie:coordinator:0.4' if coord.sla_enabled else coord.schema_version | n,unicode }"
   ${ 'xmlns:sla="uri:oozie:sla:0.2"' if coord.sla_enabled else '' | n,unicode }>

+ 2 - 2
apps/oozie/src/oozie/tests.py

@@ -1472,7 +1472,7 @@ class TestEditor(OozieMockBase):
 
     assert_true(
 """<coordinator-app name="MyCoord"
-  frequency="${coord:days(1)}"
+  frequency="0 0 * * *"
   start="2012-07-01T00:00Z" end="2012-07-04T00:00Z" timezone="America/Los_Angeles"
   xmlns="uri:oozie:coordinator:0.2"
   >
@@ -1551,7 +1551,7 @@ class TestEditor(OozieMockBase):
 
     assert_true(
 """<coordinator-app name="MyCoord"
-  frequency="${coord:days(1)}"
+  frequency="0 0 * * *"
   start="2012-07-01T00:00Z" end="2012-07-04T00:00Z" timezone="America/Los_Angeles"
   xmlns="uri:oozie:coordinator:0.2"
   >

+ 6 - 2
apps/oozie/src/oozie/views/editor.py

@@ -388,6 +388,8 @@ def create_coordinator(request, workflow=None):
 
     if coordinator_form.is_valid():
       coordinator = coordinator_form.save()
+      coordinator.cron_frequency = {'frequency': request.POST.get('cron_frequency'), 'isAdvancedCron': request.POST.get('isAdvancedCron') == 'on'}
+      coordinator.save()
       Document.objects.link(coordinator, owner=coordinator.owner, name=coordinator.name, description=coordinator.description)
       return redirect(reverse('oozie:edit_coordinator', kwargs={'coordinator': coordinator.id}) + "#step3")
     else:
@@ -398,6 +400,7 @@ def create_coordinator(request, workflow=None):
   return render('editor/create_coordinator.mako', request, {
     'coordinator': coordinator,
     'coordinator_form': coordinator_form,
+    'coordinator_frequency': json.dumps(coordinator.cron_frequency),
   })
 
 
@@ -475,8 +478,8 @@ def edit_coordinator(request, coordinator):
       data_output_formset.save()
       new_data_input_formset.save()
       new_data_output_formset.save()
-
       coordinator.sla = json.loads(request.POST.get('sla'))
+      coordinator.cron_frequency = {'frequency': request.POST.get('cron_frequency'), 'isAdvancedCron': request.POST.get('isAdvancedCron') == 'on'}
       coordinator.save()
 
       request.info(_('Coordinator saved.'))
@@ -499,7 +502,8 @@ def edit_coordinator(request, coordinator):
     'dataset_form': dataset_form,
     'new_data_input_formset': new_data_input_formset,
     'new_data_output_formset': new_data_output_formset,
-    'history': history
+    'history': history,
+    'coordinator_frequency': json.dumps(coordinator.cron_frequency)
   })
 
 

+ 58 - 0
apps/oozie/static/js/coordinator.js

@@ -0,0 +1,58 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Not in coordinator_properties as also used in create coordinator.
+
+function initCoordinator(coordinator_json) {
+
+  var coordCron =
+    $('#coord-frequency')
+    .jqCron({
+      enabled_minute: true,
+      multiple_dom: true,
+      multiple_month: true,
+      multiple_mins: true,
+      multiple_dow: true,
+      multiple_time_hours: true,
+      multiple_time_minutes: true,
+      default_period: 'day',
+      default_value: coordinator_json.frequency,
+      no_reset_button: false,
+      lang: 'en'
+    })
+    .jqCronGetInstance();
+
+  var coordModel = function() {
+    var self = this;
+
+    self.isSaveVisible = ko.observable(false);
+    self.isAdvancedCron = ko.observable(false);
+    self.isAdvancedCron.subscribe(function(value) {
+      if (value) {
+        coordCron.disable();
+      } else {
+        coordCron.enable();
+      }
+    });
+  };
+
+  window.coordModel = new coordModel();
+  window.coordModel.isAdvancedCron(coordinator_json.isAdvancedCron);
+  $('#coord-frequency').val(coordinator_json.frequency),
+
+  ko.applyBindings(window.coordModel, document.getElementById('step2'));
+}
+

+ 1 - 1
apps/oozie/static/js/workflow.js

@@ -696,7 +696,7 @@ var WorkflowModule = function($, NodeModelChooser, Node, ForkNode, DecisionNode,
       var self = this;
       self.job_properties.remove(data);
     },
-    
+
     // Workflow UI
     // Function to build nodes... recursively.
     build: function() {

+ 2 - 2
apps/oozie/static/js/workflow.models.js

@@ -406,10 +406,10 @@ function initializeNodeData() {
   if (! ('sla' in self.data)) {
     self.data['sla'] = DEFAULT_SLA.slice(0);
   }
-  
+
   if (! ('credentials' in self.data)) {
 	self.data['credentials'] = getDefaultData()['credentials'].slice(0);
-  }  
+  }
 }
 
 var WorkflowModel = ModelModule($);

+ 19 - 0
desktop/core/static/ext/jqCron/LICENSE

@@ -0,0 +1,19 @@
+Copyright (c) 2012-2013 Arnaud Buathier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 24 - 0
desktop/core/static/ext/jqCron/README.md

@@ -0,0 +1,24 @@
+jqCron
+======
+
+Cron jQuery plugin
+
+Originaly created in july 2012.
+
+Simple documentation available at [this link](http://arnapou.net/2012-07-jquery-cron/)
+
+Features
+========
+* multi select
+* i18n
+* custom binding with dom element (can be two ways sync for instance with input)
+* lots of options (reset button, default value, ...)
+* php class to test matching dates
+
+Examples/screenshots
+====================
+![screen1](/screenshots/example1.png)
+![screen2](/screenshots/example2.png)
+![screen3](/screenshots/example3.png)
+![screen4](/screenshots/example4.png)
+![screen5](/screenshots/cron_php.png)

+ 108 - 0
desktop/core/static/ext/jqCron/jqCron.css

@@ -0,0 +1,108 @@
+
+/*
+ * This file is part of the Arnapou jqCron package.
+ *
+ * (c) Arnaud Buathier <arnaud@arnapou.net>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+ 
+.jqCron-selector {
+	position: relative;
+}
+.jqCron-cross,
+.jqCron-selector-title {
+	cursor: pointer;
+	border-radius: 3px;
+	border: 1px solid #ddd;
+	margin: 0 0.2em;
+	padding: 0 0.5em;
+}
+.jqCron-container.disable .jqCron-cross:hover,
+.jqCron-container.disable .jqCron-selector-title:hover,
+.jqCron-cross,
+.jqCron-selector-title {
+	background: #eee;
+	border-color: #ddd;
+}
+.jqCron-cross:hover,
+.jqCron-selector-title:hover {
+	background-color: #ddd;
+	border-color: #aaa;
+}
+.jqCron-cross {
+	border-radius: 1em;
+	font-size: 80%;
+	padding: 0 0.3em;
+}
+.jqCron-selector-list {
+	background: #eee;
+	border: 1px solid #aaa;
+	-webkit-box-shadow: 2px 2px 3px #ccc;
+	box-shadow: 2px 2px 3px #ccc;
+	left: 0.2em;
+	list-style: none;
+	margin: 0;
+	padding: 0;
+	position: absolute;
+	top: 1.5em;
+	z-index: 1;
+}
+.jqCron-selector-list li {
+	-webkit-box-sizing: border-box;
+	-moz-box-sizing: border-box;
+	-ms-box-sizing: border-box;
+	box-sizing: border-box;
+	cursor: default;
+	display: inline-block;
+	margin: 0;
+	padding: 0.1em 0.4em;
+	width: 100%;
+}
+.jqCron-selector-list li.selected {
+	background: #0088cc;
+	color: white;
+}
+.jqCron-selector-list li:hover {
+	background: #5fb9e7;
+	color: white;
+}
+.jqCron-selector-list.cols2 {
+	width: 4em;
+}
+.jqCron-selector-list.cols2 li {
+	width: 50%;
+}
+.jqCron-selector-list.cols3 {
+	width: 6em;
+}
+.jqCron-selector-list.cols3 li {
+	width: 33%;
+}
+.jqCron-selector-list.cols4 {
+	width: 8em;
+}
+.jqCron-selector-list.cols4 li {
+	width: 25%;
+}
+.jqCron-selector-list.cols5 {
+	width: 10em;
+}
+.jqCron-selector-list.cols5 li {
+	width: 20%;
+}
+.jqCron-error .jqCron-selector-title {
+	background: #fee;
+	border: 1px solid #fdd;
+	color: red;
+}
+.jqCron-container.disable * {
+	color: #888;
+}
+.jqCron-container.disable .jqCron-selector-title {
+	background: #eee !important;
+}
+
+
+

文件差異過大導致無法顯示
+ 8 - 0
desktop/core/static/ext/jqCron/jqCron.min.js


部分文件因文件數量過多而無法顯示