PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.2
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.2
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | assets/js/mainwp-post-edit.js +3 -6 5.1 → 6.2.2 View file →
@@ -160,9 +160,8 @@
160 160 type: 'datetime',
161 161 initialDate: function () {
162 162 let aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();
163 163 let ind = new Date(aa, mm - 1, jj, hh, mn);
164 - console.log(ind);
165 164 return ind;
166 165 }(),
167 166 monthFirst: false,
168 167 formatter: {
@@ -174,9 +173,8 @@
174 173 return aa + '-' + mm + '-' + jj;
175 174 }
176 175 },
177 176 onChange: function (attemptedDate, textDate) {
178 - console.log('onChange:' + textDate);
179 177 let aa = attemptedDate.getFullYear(), mm = attemptedDate.getMonth() + 1, jj = attemptedDate.getDate(), mn = attemptedDate.getMinutes(), hh = attemptedDate.getHours();
180 178 mm = ('0' + mm).slice(-2); // to format 01,02,03, ... 11,12
181 179 $('#aa').val(aa);
182 180 $('#mm').val(mm).trigger("change"); // selector element
@@ -185,9 +183,8 @@
185 183 $('#mn').val(mn);
186 184 return updateText(); // not set if invalid date
187 185 },
188 186 onSelect: function (attemptedDate, mode) {
189 - console.log('onSelect mode:' + mode);
190 187 let aa = attemptedDate.getFullYear(), mm = attemptedDate.getMonth() + 1, jj = attemptedDate.getDate(), mn = attemptedDate.getMinutes(), hh = attemptedDate.getHours();
191 188 mm = ('0' + mm).slice(-2); // to format 01,02,03, ... 11,12
192 189 $('#aa').val(aa);
193 190 $('#mm').val(mm).trigger("change"); // selector element
@@ -285,18 +282,18 @@
285 282 }
286 283
287 284 if (mce) {
288 285 editor.focus();
289 - toolbarHeight = parseInt($('#wp-content-editor-container .mce-toolbar-grp').height(), 10);
286 + toolbarHeight = Number.parseInt($('#wp-content-editor-container .mce-toolbar-grp').height(), 10);
290 287
291 288 if (toolbarHeight < 10 || toolbarHeight > 200) {
292 289 toolbarHeight = 30;
293 290 }
294 291
295 - height = parseInt($('#content_ifr').css('height'), 10) + toolbarHeight - 28;
292 + height = Number.parseInt($('#content_ifr').css('height'), 10) + toolbarHeight - 28;
296 293 } else {
297 294 $textarea.trigger('focus');
298 - height = parseInt($textarea.css('height'), 10);
295 + height = Number.parseInt($textarea.css('height'), 10);
299 296 }
300 297
301 298 $document.off('.wp-editor-resize');
302 299