Commit 212a5e48 authored by Ad Schellevis's avatar Ad Schellevis

(trafficshaper) UI prevent dialogs from closing accidentally

parent e4745507
...@@ -59,7 +59,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -59,7 +59,7 @@ POSSIBILITY OF SUCH DAMAGE.
}); });
// show dialog for pipe edit // show dialog for pipe edit
$('#DialogPipe').modal(); $('#DialogPipe').modal({backdrop: 'static', keyboard: false});
// curry uuid to save action // curry uuid to save action
$("#btn_DialogPipe_save").unbind('click').click(savePipe.bind(undefined, uuid)); $("#btn_DialogPipe_save").unbind('click').click(savePipe.bind(undefined, uuid));
}).end(); }).end();
...@@ -131,7 +131,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -131,7 +131,7 @@ POSSIBILITY OF SUCH DAMAGE.
}); });
// show dialog for pipe edit // show dialog for pipe edit
$('#DialogPipe').modal(); $('#DialogPipe').modal({backdrop: 'static', keyboard: false});
// curry uuid to save action // curry uuid to save action
$("#btn_DialogPipe_save").unbind('click').click(addPipe); $("#btn_DialogPipe_save").unbind('click').click(addPipe);
...@@ -184,7 +184,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -184,7 +184,7 @@ POSSIBILITY OF SUCH DAMAGE.
}); });
// show dialog for pipe edit // show dialog for pipe edit
$('#DialogRule').modal(); $('#DialogRule').modal({backdrop: 'static', keyboard: false});
// curry uuid to save action // curry uuid to save action
$("#btn_DialogRule_save").unbind('click').click(saveRule.bind(undefined, uuid)); $("#btn_DialogRule_save").unbind('click').click(saveRule.bind(undefined, uuid));
}).end(); }).end();
...@@ -215,7 +215,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -215,7 +215,7 @@ POSSIBILITY OF SUCH DAMAGE.
}); });
// show dialog for pipe edit // show dialog for pipe edit
$('#DialogRule').modal(); $('#DialogRule').modal({backdrop: 'static', keyboard: false});
// curry uuid to save action // curry uuid to save action
$("#btn_DialogRule_save").unbind('click').click(addRule); $("#btn_DialogRule_save").unbind('click').click(addRule);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment