Plugin Directory

Changeset 1974225


Ignore:
Timestamp:
11/14/2018 01:34:10 PM (7 years ago)
Author:
clym
Message:

Tagging version 2.0.2

Location:
clym
Files:
1 edited
8 copied

Legend:

Unmodified
Added
Removed
  • clym/tags/2.0.2/admin/js/custom.js

    r1974207 r1974225  
    119119};
    120120
     121function showAlert() {
     122    $("#clymAlert").addClass("in");
     123}
     124
     125function hideAlert() {
     126    $("#clymAlert").removeClass("in");
     127}
     128
    121129function updateOption(data) {
    122130    var value,
     
    182190
    183191                if (response === 'success') {
     192                    $("#clymAlert").removeClass("clym-alert-error");
    184193                    clymAlert.innerHTML = 'Settings saved';
    185194                    showAlert();
     
    189198                    showAlert();
    190199                }
     200                window.setTimeout(function () {
     201                    hideAlert();
     202                }, 2000);
     203
    191204                if (data === 'q-widget') {
    192205                    location.reload();
     
    197210}
    198211
    199 function showAlert() {
    200     $("#clymAlert").addClass("in");
    201 }
    202 
    203 function hideAlert() {
    204     $("#clymAlert").removeClass("in");
    205 }
    206 
    207 
    208 window.setTimeout(function () {
    209     hideAlert();
    210 }, 3000);
  • clym/trunk/admin/js/custom.js

    r1974207 r1974225  
    119119};
    120120
     121function showAlert() {
     122    $("#clymAlert").addClass("in");
     123}
     124
     125function hideAlert() {
     126    $("#clymAlert").removeClass("in");
     127}
     128
    121129function updateOption(data) {
    122130    var value,
     
    182190
    183191                if (response === 'success') {
     192                    $("#clymAlert").removeClass("clym-alert-error");
    184193                    clymAlert.innerHTML = 'Settings saved';
    185194                    showAlert();
     
    189198                    showAlert();
    190199                }
     200                window.setTimeout(function () {
     201                    hideAlert();
     202                }, 2000);
     203
    191204                if (data === 'q-widget') {
    192205                    location.reload();
     
    197210}
    198211
    199 function showAlert() {
    200     $("#clymAlert").addClass("in");
    201 }
    202 
    203 function hideAlert() {
    204     $("#clymAlert").removeClass("in");
    205 }
    206 
    207 
    208 window.setTimeout(function () {
    209     hideAlert();
    210 }, 3000);
Note: See TracChangeset for help on using the changeset viewer.