-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing against WordPress 4.3-RC2, brought jQuery UI CSS up to date, …
…removed spammy link, various PHP warnings fixed
- Loading branch information
1 parent
d821e41
commit c622aba
Showing
33 changed files
with
1,081 additions
and
1,097 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_diagonals-thick_18_b81900_40x40.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_diagonals-thick_20_666666_40x40.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_glass_100_f6f6f6_1x400.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_glass_100_fdf5ce_1x400.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
jQuery(document).ready(function($) { | ||
|
||
$('input[type="submit"]').on('click', function() { | ||
$('#quick-press').data('button', this.name); | ||
}); | ||
$('input[type="submit"]').on('click', function() { | ||
$('#quick-press').data('button', this.name); | ||
}); | ||
|
||
|
||
$('#quick-press').on('submit', function(e) { | ||
var submitButton = $(this).data('button') || $('input[type="submit"]').get(0).name; | ||
if (submitButton == 'publish') { | ||
myalert("Thanks for your article!", alertText); | ||
} | ||
}); | ||
$('#quick-press').on('submit', function(e) { | ||
var submitButton = $(this).data('button') || $('input[type="submit"]').get(0).name; | ||
if (submitButton == 'publish') { | ||
myalert("Thanks for your article!", alertText); | ||
} | ||
}); | ||
|
||
function myalert(title, text) { | ||
var div = $('<div>').html(text).dialog({ | ||
title: title, | ||
modal: false, | ||
width: '40%', | ||
close: function() { | ||
$(div).dialog('destroy').remove(); | ||
}, | ||
buttons: [{ | ||
text: "Ok", | ||
click: function() { | ||
$(this).dialog("close"); | ||
} | ||
}] | ||
}) | ||
}; | ||
var alertText = "<p>The article you submitted has been scheduled for a later time to ensure articles are spaced out and published during higher traffic periods. Do not be alarmed, the web mechanic is trying to make sure your article gets the visibility it deserves!</p> <p>Lower traffic periods: Late Nights, Early Mornings, and Weekends are generally avoided.</p>"; | ||
function myalert(title, text) { | ||
var div = $('<div>').html(text).dialog({ | ||
title: title, | ||
modal: false, | ||
width: '40%', | ||
close: function() { | ||
$(div).dialog('destroy').remove(); | ||
}, | ||
buttons: [{ | ||
text: "Ok", | ||
click: function() { | ||
$(this).dialog("close"); | ||
} | ||
}] | ||
}) | ||
}; | ||
var alertText = "<p>The article you submitted has been scheduled for a later time to ensure articles are spaced out and published during higher traffic periods. Do not be alarmed, we are trying to make sure your article gets the visibility it deserves!</p> <p>Lower traffic periods: Late Nights, Early Mornings, and Weekends are generally avoided.</p>"; | ||
|
||
|
||
$('a.publish-now').on('click', function(e) { | ||
e.preventDefault(); | ||
var nonce = $(this).attr('data-nonce'); | ||
var split = $(this).attr('href').replace('?', '').split('&').map(function(val) { | ||
return val.split('='); | ||
}); | ||
postID = split[0][1]; | ||
$.post(ajaxurl, { | ||
'action': 'publish_now', | ||
'pid': postID, | ||
'_wp_nonce': nonce | ||
}, function(data) { | ||
if (data.error) alert(data.error); | ||
else location.reload(true); | ||
$('a.publish-now').on('click', function(e) { | ||
e.preventDefault(); | ||
var nonce = $(this).attr('data-nonce'); | ||
var split = $(this).attr('href').replace('?', '').split('&').map(function(val) { | ||
return val.split('='); | ||
}); | ||
postID = split[0][1]; | ||
$.post(ajaxurl, { | ||
'action': 'publish_now', | ||
'pid': postID, | ||
'_wp_nonce': nonce | ||
}, function(data) { | ||
if (data.error) alert(data.error); | ||
else location.reload(true); | ||
|
||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters