PluginProbe
Wp-Insert / 1.3.0
Wp-Insert v1.3.0
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / js / common.js

common.js in Wp-Insert 1.3.0, at js/common.js

17 lines 736 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function wpInsertToggleNotSavedAlert() {
2 document.getElementById("message").style.display = "block";
3 jQuery("#message").animate({opacity: 1, height: "100%"}, 1500);
4 }
5
6 function wpInsertToggleAdWidget(sender, pointerid) {
7 if(jQuery(sender).attr("value") == "Click to Activate") {
8 jQuery(pointerid).attr("checked", true);
9 jQuery(sender).animate({color: "red",}, 1500, "linear", function() { wpInsertToggleNotSavedAlert(); } );
10 jQuery(sender).attr("value", "Click to Deactivate");
11 }
12 else {
13 jQuery(pointerid).attr("checked", false);
14 jQuery(sender).animate({color: "#2f9303",}, 1500, "linear", function() { wpInsertToggleNotSavedAlert(); } );
15 jQuery(sender).attr("value", "Click to Activate");
16 }
17 }