diff --git a/static/js/jquery.alerts.js b/static/js/jquery.alerts.js
deleted file mode 100644
index 0b32996..0000000
--- a/static/js/jquery.alerts.js
+++ /dev/null
@@ -1,235 +0,0 @@
-// jQuery Alert Dialogs Plugin
-//
-// Version 1.1
-//
-// Cory S.N. LaViska
-// A Beautiful Site (http://abeautifulsite.net/)
-// 14 May 2009
-//
-// Website: http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/
-//
-// Usage:
-// jAlert( message, [title, callback] )
-// jConfirm( message, [title, callback] )
-// jPrompt( message, [value, title, callback] )
-//
-// History:
-//
-// 1.00 - Released (29 December 2008)
-//
-// 1.01 - Fixed bug where unbinding would destroy all resize events
-//
-// License:
-//
-// This plugin is dual-licensed under the GNU General Public License and the MIT License and
-// is copyright 2008 A Beautiful Site, LLC.
-//
-(function($) {
-
- $.alerts = {
-
- // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
-
- verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
- horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
- repositionOnResize: true, // re-centers the dialog on window resize
- overlayOpacity: .01, // transparency level of overlay
- overlayColor: '#FFF', // base color of overlay
- draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
- okButton: ' OK ', // text for the OK button
- cancelButton: ' Cancel ', // text for the Cancel button
- dialogClass: null, // if specified, this class will be applied to all dialogs
-
- // Public methods
-
- alert: function(message, title, callback) {
- if( title == null ) title = 'Alert';
- $.alerts._show(title, message, null, 'alert', function(result) {
- if( callback ) callback(result);
- });
- },
-
- confirm: function(message, title, callback) {
- if( title == null ) title = 'Confirm';
- $.alerts._show(title, message, null, 'confirm', function(result) {
- if( callback ) callback(result);
- });
- },
-
- prompt: function(message, value, title, callback) {
- if( title == null ) title = 'Prompt';
- $.alerts._show(title, message, value, 'prompt', function(result) {
- if( callback ) callback(result);
- });
- },
-
- // Private methods
-
- _show: function(title, msg, value, type, callback) {
-
- $.alerts._hide();
- $.alerts._overlay('show');
-
- $("BODY").append(
- '
');
-
- if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass);
-
- // IE6 Fix
- var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed';
-
- $("#popup_container").css({
- position: pos,
- zIndex: 99999,
- padding: 0,
- margin: 0
- });
-
- $("#popup_title").text(title);
- $("#popup_content").addClass(type);
- $("#popup_message").text(msg);
- $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
') );
-
- $("#popup_container").css({
- minWidth: $("#popup_container").outerWidth(),
- maxWidth: $("#popup_container").outerWidth()
- });
-
- $.alerts._reposition();
- $.alerts._maintainPosition(true);
-
- switch( type ) {
- case 'alert':
- $("#popup_message").after('');
- $("#popup_ok").click( function() {
- $.alerts._hide();
- callback(true);
- });
- $("#popup_ok").focus().keypress( function(e) {
- if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click');
- });
- break;
- case 'confirm':
- $("#popup_message").after('');
- $("#popup_ok").click( function() {
- $.alerts._hide();
- if( callback ) callback(true);
- });
- $("#popup_cancel").click( function() {
- $.alerts._hide();
- if( callback ) callback(false);
- });
- $("#popup_ok").focus();
- $("#popup_ok, #popup_cancel").keypress( function(e) {
- if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
- if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
- });
- break;
- case 'prompt':
- $("#popup_message").append('
').after('');
- $("#popup_prompt").width( $("#popup_message").width() );
- $("#popup_ok").click( function() {
- var val = $("#popup_prompt").val();
- $.alerts._hide();
- if( callback ) callback( val );
- });
- $("#popup_cancel").click( function() {
- $.alerts._hide();
- if( callback ) callback( null );
- });
- $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) {
- if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
- if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
- });
- if( value ) $("#popup_prompt").val(value);
- $("#popup_prompt").focus().select();
- break;
- }
-
- // Make draggable
- if( $.alerts.draggable ) {
- try {
- $("#popup_container").draggable({ handle: $("#popup_title") });
- $("#popup_title").css({ cursor: 'move' });
- } catch(e) { /* requires jQuery UI draggables */ }
- }
- },
-
- _hide: function() {
- $("#popup_container").remove();
- $.alerts._overlay('hide');
- $.alerts._maintainPosition(false);
- },
-
- _overlay: function(status) {
- switch( status ) {
- case 'show':
- $.alerts._overlay('hide');
- $("BODY").append('');
- $("#popup_overlay").css({
- position: 'absolute',
- zIndex: 99998,
- top: '0px',
- left: '0px',
- width: '100%',
- height: $(document).height(),
- background: $.alerts.overlayColor,
- opacity: $.alerts.overlayOpacity
- });
- break;
- case 'hide':
- $("#popup_overlay").remove();
- break;
- }
- },
-
- _reposition: function() {
- var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset;
- var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset;
- if( top < 0 ) top = 0;
- if( left < 0 ) left = 0;
-
- // IE6 fix
- if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
-
- $("#popup_container").css({
- top: top + 'px',
- left: left + 'px'
- });
- $("#popup_overlay").height( $(document).height() );
- },
-
- _maintainPosition: function(status) {
- if( $.alerts.repositionOnResize ) {
- switch(status) {
- case true:
- $(window).bind('resize', $.alerts._reposition);
- break;
- case false:
- $(window).unbind('resize', $.alerts._reposition);
- break;
- }
- }
- }
-
- }
-
- // Shortuct functions
- jAlert = function(message, title, callback) {
- $.alerts.alert(message, title, callback);
- }
-
- jConfirm = function(message, title, callback) {
- $.alerts.confirm(message, title, callback);
- };
-
- jPrompt = function(message, value, title, callback) {
- $.alerts.prompt(message, value, title, callback);
- };
-
-})(jQuery);
\ No newline at end of file
diff --git a/static/js/jquery.ui.draggable.js b/static/js/jquery.ui.draggable.js
deleted file mode 100644
index 6d75520..0000000
--- a/static/js/jquery.ui.draggable.js
+++ /dev/null
@@ -1 +0,0 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8(C){C.h={19:{13:8(E,D,H){c G=C.h[E].1K;2H(c F 3D H){G.1W[F]=G.1W[F]||[];G.1W[F].2F([D,H[F]])}},2f:8(D,F,E){c H=D.1W[F];5(!H){e}2H(c G=0;G\').1V(D).d({n:"Z",6:"-3a",7:"-3a",3E:"3F"}).1v("11");C.h.1Z[D]=!!((!(/1G|3I/).X(E.d("1q"))||(/^[1-9]/).X(E.d("w"))||(/^[1-9]/).X(E.d("T"))||!(/35/).X(E.d("3H"))||!(/3G|3z\\(0, 0, 0, 0\\)/).X(E.d("3y"))));3w{C("11").3c(0).3e(E.3c(0))}3T(F){}e C.h.1Z[D]},3Y:8(D){C(D).1N("1Q","3p").d("30","35")},3S:8(D){C(D).1N("1Q","3R").d("30","")},3L:8(G,D){c F=/6/.X(D||"6")?"v":"u",E=p;5(G[F]>0){e q}G[F]=1;E=G[F]>0?q:p;G[F]=0;e E}};c A=C.2Q.1u;C.2Q.1u=8(){C("*",4).13(4).2J("1u");e A.1M(4,3k)};8 B(F,D,G){c E=C[F][D].3Q||[];E=(2j E=="2D"?E.2K(/,?\\s+/):E);e(C.3P(G,E)!=-1)}C.1C=8(D,E){c F=D.2K(".")[0];D=D.2K(".")[1];C.2Q[D]=8(J){c H=(2j J=="2D"),I=3M.1K.3W.2f(3k,1);5(H&&B(F,D,J)){c G=C.U(4[0],D);e(G?G[J].1M(G,I):1L)}e 4.1h(8(){c K=C.U(4,D);5(H&&K&&C.39(K[J])){K[J].1M(K,I)}1A{5(!H){C.U(4,D,3K C[F][D](4,J))}}})};C[F][D]=8(H,I){c G=4;4.1m=D;4.3t=F+"-"+D;4.a=C.1S({},C.1C.1H,C[F][D].1H,I);4.j=C(H).1x("1R."+D,8(L,J,K){e G.1R(J,K)}).1x("2G."+D,8(K,J){e G.2G(J)}).1x("1u",8(){e G.2u()});4.2m()};C[F][D].1K=C.1S({},C.1C.1K,E)};C.1C.1K={2m:8(){},2u:8(){4.j.3l(4.1m)},2G:8(D){e 4.a[D]},1R:8(D,E){4.a[D]=E;5(D=="1j"){4.j[E?"1V":"2s"](4.3t+"-1j")}},3U:8(){4.1R("1j",p)},3Z:8(){4.1R("1j",q)}};C.1C.1H={1j:p};C.h.2k={3b:8(){c D=4;4.j.1x("3x."+4.1m,8(E){e D.3f(E)});5(C.2h.2o){4.3i=4.j.1N("1Q");4.j.1N("1Q","3p")}4.3A=p},3r:8(){4.j.2b("."+4.1m);(C.2h.2o&&4.j.1N("1Q",4.3i))},3f:8(F){(4.1e&&4.1Y(F));4.27=F;c D=4,G=(F.3V==1),E=(2j 4.a.2e=="2D"?C(F.1T).38().13(F.1T).3B(4.a.2e).1F:p);5(!G||E||!4.2M(F)){e q}4.23=!4.a.2g;5(!4.23){4.3J=3X(8(){D.23=q},4.a.2g)}5(4.2z(F)&&4.2y(F)){4.1e=(4.1U(F)!==p);5(!4.1e){F.3N();e q}}4.2C=8(H){e D.3u(H)};4.2n=8(H){e D.1Y(H)};C(i).1x("36."+4.1m,4.2C).1x("3h."+4.1m,4.2n);e p},3u:8(D){5(C.2h.2o&&!D.3O){e 4.1Y(D)}5(4.1e){4.1y(D);e p}5(4.2z(D)&&4.2y(D)){4.1e=(4.1U(4.27,D)!==p);(4.1e?4.1y(D):4.1Y(D))}e!4.1e},1Y:8(D){C(i).2b("36."+4.1m,4.2C).2b("3h."+4.1m,4.2n);5(4.1e){4.1e=p;4.1I(D)}e p},2z:8(D){e(S.2l(S.1b(4.27.1k-D.1k),S.1b(4.27.1i-D.1i))>=4.a.2p)},2y:8(D){e 4.23},1U:8(D){},1y:8(D){},1I:8(D){},2M:8(D){e q}};C.h.2k.1H={2e:3n,2p:1,2g:0}})(31);(8(A){A.1C("h.l",A.1S({},A.h.2k,{2m:8(){c B=4.a;5(B.g=="2q"&&!(/(o|Z|17)/).X(4.j.d("n"))){4.j.d("n","o")}4.j.1V("h-l");(B.1j&&4.j.1V("h-l-1j"));4.3b()},1U:8(F){c H=4.a;5(4.g||H.1j||A(F.1T).4h(".h-4q-26")){e p}c B=!4.a.26||!A(4.a.26,4.j).1F?q:p;A(4.a.26,4.j).4r("*").4s().1h(8(){5(4==F.1T){B=q}});5(!B){e p}5(A.h.1n){A.h.1n.4p=4}4.g=A.39(H.g)?A(H.g.1M(4.j[0],[F])):(H.g=="2O"?4.j.2O():4.j);5(!4.g.38("11").1F){4.g.1v((H.1v=="m"?4.j[0].1D:H.1v))}5(4.g[0]!=4.j[0]&&!(/(17|Z)/).X(4.g.d("n"))){4.g.d("n","Z")}4.Y={7:(r(4.j.d("4o"),10)||0),6:(r(4.j.d("4l"),10)||0)};4.W=4.g.d("n");4.b=4.j.b();4.b={6:4.b.6-4.Y.6,7:4.b.7-4.Y.7};4.b.z={7:F.1k-4.b.7,6:F.1i-4.b.6};4.t=4.g.t();c C=4.t.b();5(4.t[0]==i.11&&A.2h.4m){C={6:0,7:0}}4.b.m={6:C.6+(r(4.t.d("2i"),10)||0),7:C.7+(r(4.t.d("2x"),10)||0)};c E=4.j.n();4.b.o=4.W=="o"?{6:E.6-(r(4.g.d("6"),10)||0)+4.t[0].v,7:E.7-(r(4.g.d("7"),10)||0)+4.t[0].u}:{6:0,7:0};4.1s=4.2B(F);4.V={T:4.g.2P(),w:4.g.2E()};5(H.1g){5(H.1g.7!=1L){4.b.z.7=H.1g.7+4.Y.7}5(H.1g.3g!=1L){4.b.z.7=4.V.T-H.1g.3g+4.Y.7}5(H.1g.6!=1L){4.b.z.6=H.1g.6+4.Y.6}5(H.1g.37!=1L){4.b.z.6=4.V.w-H.1g.37+4.Y.6}}5(H.k){5(H.k=="m"){H.k=4.g[0].1D}5(H.k=="i"||H.k=="1B"){4.k=[0-4.b.o.7-4.b.m.7,0-4.b.o.6-4.b.m.6,A(H.k=="i"?i:1B).T()-4.b.o.7-4.b.m.7-4.V.T-4.Y.7-(r(4.j.d("2X"),10)||0),(A(H.k=="i"?i:1B).w()||i.11.1D.2W)-4.b.o.6-4.b.m.6-4.V.w-4.Y.6-(r(4.j.d("2Z"),10)||0)]}5(!(/^(i|1B|m)$/).X(H.k)){c D=A(H.k)[0];c G=A(H.k).b();4.k=[G.7+(r(A(D).d("2x"),10)||0)-4.b.o.7-4.b.m.7,G.6+(r(A(D).d("2i"),10)||0)-4.b.o.6-4.b.m.6,G.7+S.2l(D.4n,D.2U)-(r(A(D).d("2x"),10)||0)-4.b.o.7-4.b.m.7-4.V.T-4.Y.7-(r(4.j.d("2X"),10)||0),G.6+S.2l(D.2W,D.2S)-(r(A(D).d("2i"),10)||0)-4.b.o.6-4.b.m.6-4.V.w-4.Y.6-(r(4.j.d("2Z"),10)||0)]}}4.1d("1f",F);4.V={T:4.g.2P(),w:4.g.2E()};5(A.h.1n&&!H.32){A.h.1n.4u(4,F)}4.g.1V("h-l-3o");4.1y(F);e q},12:8(C,D){5(!D){D=4.n}c B=C=="Z"?1:-1;e{6:(D.6+4.b.o.6*B+4.b.m.6*B-(4.W=="17"||(4.W=="Z"&&4.t[0]==i.11)?0:4.t[0].v)*B+(4.W=="17"?A(i).v():0)*B+4.Y.6*B),7:(D.7+4.b.o.7*B+4.b.m.7*B-(4.W=="17"||(4.W=="Z"&&4.t[0]==i.11)?0:4.t[0].u)*B+(4.W=="17"?A(i).u():0)*B+4.Y.7*B)}},2B:8(E){c F=4.a;c B={6:(E.1i-4.b.z.6-4.b.o.6-4.b.m.6+(4.W=="17"||(4.W=="Z"&&4.t[0]==i.11)?0:4.t[0].v)-(4.W=="17"?A(i).v():0)),7:(E.1k-4.b.z.7-4.b.o.7-4.b.m.7+(4.W=="17"||(4.W=="Z"&&4.t[0]==i.11)?0:4.t[0].u)-(4.W=="17"?A(i).u():0))};5(!4.1s){e B}5(4.k){5(B.7<4.k[0]){B.7=4.k[0]}5(B.6<4.k[1]){B.6=4.k[1]}5(B.7>4.k[2]){B.7=4.k[2]}5(B.6>4.k[3]){B.6=4.k[3]}}5(F.1c){c D=4.1s.6+S.3j((B.6-4.1s.6)/F.1c[1])*F.1c[1];B.6=4.k?(!(D<4.k[1]||D>4.k[3])?D:(!(D<4.k[1])?D-F.1c[1]:D+F.1c[1])):D;c C=4.1s.7+S.3j((B.7-4.1s.7)/F.1c[0])*F.1c[0];B.7=4.k?(!(C<4.k[0]||C>4.k[2])?C:(!(C<4.k[0])?C-F.1c[0]:C+F.1c[0])):C}e B},1y:8(B){4.n=4.2B(B);4.1t=4.12("Z");4.n=4.1d("1l",B)||4.n;5(!4.a.1O||4.a.1O!="y"){4.g[0].1P.7=4.n.7+"21"}5(!4.a.1O||4.a.1O!="x"){4.g[0].1P.6=4.n.6+"21"}5(A.h.1n){A.h.1n.1l(4,B)}e p},1I:8(C){c D=p;5(A.h.1n&&!4.a.32){c D=A.h.1n.4B(4,C)}5((4.a.1w=="4z"&&!D)||(4.a.1w=="4y"&&D)||4.a.1w===q){c B=4;A(4.g).4v(4.1s,r(4.a.1w,10)||4w,8(){B.1d("1p",C);B.2r()})}1A{4.1d("1p",C);4.2r()}e p},2r:8(){4.g.2s("h-l-3o");5(4.a.g!="2q"&&!4.1X){4.g.1u()}4.g=3n;4.1X=p},1W:{},2t:8(B){e{g:4.g,n:4.n,2I:4.1t,a:4.a}},1d:8(C,B){A.h.19.2f(4,C,[B,4.2t()]);5(C=="1l"){4.1t=4.12("Z")}e 4.j.2J(C=="1l"?C:"1l"+C,[B,4.2t()],4.a[C])},2u:8(){5(!4.j.U("l")){e}4.j.3l("l").2b(".l").2s("h-l");4.3r()}}));A.1S(A.h.l,{1H:{1v:"m",1O:p,2e:":4x",2g:0,2p:1,g:"2q"}});A.h.19.13("l","1q",{1f:8(D,C){c B=A("11");5(B.d("1q")){C.a.2v=B.d("1q")}B.d("1q",C.a.1q)},1p:8(C,B){5(B.a.2v){A("11").d("1q",B.a.2v)}}});A.h.19.13("l","14",{1f:8(D,C){c B=A(C.g);5(B.d("14")){C.a.2w=B.d("14")}B.d("14",C.a.14)},1p:8(C,B){5(B.a.2w){A(B.g).d("14",B.a.2w)}}});A.h.19.13("l","1o",{1f:8(D,C){c B=A(C.g);5(B.d("1o")){C.a.2A=B.d("1o")}B.d("1o",C.a.1o)},1p:8(C,B){5(B.a.2A){A(B.g).d("1o",B.a.2A)}}});A.h.19.13("l","22",{1f:8(C,B){A(B.a.22===q?"4t":B.a.22).1h(8(){A(\'<2c 33="h-l-22" 1P="4k: #46;">2c>\').d({T:4.2U+"21",w:4.2S+"21",n:"Z",1o:"0.40",14:47}).d(A(4).b()).1v("11")})},1p:8(C,B){A("2c.48").1h(8(){4.1D.3e(4)})}});A.h.19.13("l","1J",{1f:8(D,C){c E=C.a;c B=A(4).U("l");E.18=E.18||20;E.1a=E.1a||20;B.16=8(F){2Y{5(/1G|1J/.X(F.d("29"))||(/1G|1J/).X(F.d("29-y"))){e F}F=F.m()}3q(F[0].1D);e A(i)}(4);B.15=8(F){2Y{5(/1G|1J/.X(F.d("29"))||(/1G|1J/).X(F.d("29-x"))){e F}F=F.m()}3q(F[0].1D);e A(i)}(4);5(B.16[0]!=i&&B.16[0].25!="24"){B.2R=B.16.b()}5(B.15[0]!=i&&B.15[0].25!="24"){B.2T=B.15.b()}},1l:8(D,C){c E=C.a;c B=A(4).U("l");5(B.16[0]!=i&&B.16[0].25!="24"){5((B.2R.6+B.16[0].2S)-D.1i=0;H--){c E=I.1r[H].7,B=E+I.1r[H].T,R=I.1r[H].6,M=R+I.1r[H].w;5(!((E-L
$(document).ready( function() {
$("#confirm_button").click( function() {
- jConfirm('Do you want to proced backup now ?', 'Confirmation Dialog', function(r) {
+ bootbox.confirm('Do you want to proced backup now ?', function(r) {
if(r == true ){
$("#backup").submit();
};
});
});
+ $('#selectall').click(function(event) { //on click
+ if(this.checked) { // check select status
+ $('.checkbox1').each(function() { //loop through each checkbox
+ this.checked = true; //select all checkboxes with class "checkbox1"
+ });
+ }else{
+ $('.checkbox1').each(function() { //loop through each checkbox
+ this.checked = false; //deselect all checkboxes with class "checkbox1"
+ });
+ }
+ });
});