Skip to content

Commit

Permalink
Recompiled JS and CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrg2001 committed Dec 4, 2016
1 parent becedb7 commit d630744
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 19 deletions.
7 changes: 6 additions & 1 deletion dist/w2ui-dark.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* w2ui 1.5 (nightly) (c) http://w2ui.com, [email protected] */
@font-face {
font-family: "w2ui-font";
src: url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAcEAAoAAAAACnwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAEMAAABWQLxMwmNtYXAAAAE4AAAAOgAAAUriHRC2Z2x5ZgAAAXQAAANWAAAEuO2zHwdoZWFkAAAEzAAAADAAAAA2CckPrmhoZWEAAAT8AAAAIAAAACQD8wHLaG10eAAABRwAAAAWAAAAMBbdAABsb2NhAAAFNAAAABoAAAAaBqoFqm1heHAAAAVQAAAAHwAAACABHABgbmFtZQAABXAAAAEtAAACIsTQ/zJwb3N0AAAGoAAAAGQAAACFVnRV2nicY2BkfME4gYGVgYPRhTGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHD4yfuRmPPD/AIMe4wEGR6AwI0gOANYJDAIAeJxjYGBgZoBgGQZGBhBwAfIYwXwWBg0gzQakGRmYGBg+cv//D1LwkRFE8zNA1QMBIxvDiAcAelAGwgAAeJyFVE2II1UQrnqd9F9CJ6H/5md78tNJ94YwGU2nu50ZN8lFZA+ycRdmR5JA2MsenIG97CyLlyCLN2FYr7IMKCiYEfHoxdnLHgY8eBHFS24eFHcuHhTpWJ2erCKCDe+r1/XV6676qroBAeYXDHACaQAUXMFE/OLiXv8MezhJbMzMf8E/8TFIoIIFmxAAqA6fQ94oohsKChYxdJtoth3brfAC10XXIRPTRhCqgcMp2MQObuCboi6UBCae33l1SxZSh7yRUj9XMl6GHnYw2ZS19EdpXr60p7yqCrKm8ujQEVfShE+/u6+n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prMw5VcwX/6Jo4jhx/L/TijE3VpWuou7uTg0WosOtmScaY+Gc2t06/lfQeJf+M5Kiqoq0dW7oevl/HdTan7aN1XN4nGNgZGBgAGIpTc2keH6brwzcTAwgcCV12zoY/f////1MjIwHgFwOBrA0AC2ADEF4nGNgZGBgPPD/AIMeEwMDw/9/TEwMQBEUwAMAe4IEwHicY2JgYGBCwoyTMfmM2xF8ACSrAfMAAAAAAAAAEgByAIwAyADIARgBPgFuAa4B8AJeAAB4nGNgZGBg4GEIYWBjAAEmIOYCQgaG/2A+AwASTAF9AHicbY9NbsIwEIVfIFAVpAq1UqXurC66qQg/CxYcAPYs2IfgBFASR45B4gI9Qc/QM/QEXfYMPUpfwiiLFlsef/PmjX8ADPAFD9XwcFvHarRww+zCbdJA2Cc/CXfQx7Nwl/pQuIdXzIT7eEDIEzy/Ou0eTriFO7wJt6m/C/vkD+EOHvEp3KX+LdzDGj/Cfbx4s31k8mFscrfSyTENbZM3sNa23JtcTYJxoy11rm3o9FZtzqo8JVPnYhVbk6kFqzpNjSqsOejIBTvnivloFIseRCbDHhEMcv46rneHFTQSHJHyx/ZK/b+yZodFyUqVK0wQYHzFt6Qvr70hM40tvRucGUuceOeUqqNbcVn2ZKSF9Gq+JyUrFHXtQCWiHmBXdxWYY8QZ//EH9SuyX24OYHIAAAB4nG3FQRKCMAwF0HxsCiqXZGKEjqXpNGXB7XHGrW/zaKAfpv9mIgy4IYARMWLCHQ88MbNsKp8olq35+O3Yi7M0c2fdaz9DKm+LVYukHGo+PDbNtryi69Jkm1x7T2V1ogsarhrd") format("woff");
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -2712,6 +2712,11 @@ button.w2ui-btn-small:focus:before {
font-size: 13px;
line-height: 1.5;
}
.w2ui-popup .w2ui-prompt textarea {
width: 100%;
height: 50px;
resize: none;
}
/*************************************************
* ---- Sidebar ----
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/w2ui-dark.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/w2ui.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* w2ui 1.5 (nightly) (c) http://w2ui.com, [email protected] */
@font-face {
font-family: "w2ui-font";
src: url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAcEAAoAAAAACnwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAEMAAABWQLxMwmNtYXAAAAE4AAAAOgAAAUriHRC2Z2x5ZgAAAXQAAANWAAAEuO2zHwdoZWFkAAAEzAAAADAAAAA2CckPrmhoZWEAAAT8AAAAIAAAACQD8wHLaG10eAAABRwAAAAWAAAAMBbdAABsb2NhAAAFNAAAABoAAAAaBqoFqm1heHAAAAVQAAAAHwAAACABHABgbmFtZQAABXAAAAEtAAACIsTQ/zJwb3N0AAAGoAAAAGQAAACFVnRV2nicY2BkfME4gYGVgYPRhTGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHD4yfuRmPPD/AIMe4wEGR6AwI0gOANYJDAIAeJxjYGBgZoBgGQZGBhBwAfIYwXwWBg0gzQakGRmYGBg+cv//D1LwkRFE8zNA1QMBIxvDiAcAelAGwgAAeJyFVE2II1UQrnqd9F9CJ6H/5md78tNJ94YwGU2nu50ZN8lFZA+ycRdmR5JA2MsenIG97CyLlyCLN2FYr7IMKCiYEfHoxdnLHgY8eBHFS24eFHcuHhTpWJ2erCKCDe+r1/XV6676qroBAeYXDHACaQAUXMFE/OLiXv8MezhJbMzMf8E/8TFIoIIFmxAAqA6fQ94oohsKChYxdJtoth3brfAC10XXIRPTRhCqgcMp2MQObuCboi6UBCae33l1SxZSh7yRUj9XMl6GHnYw2ZS19EdpXr60p7yqCrKm8ujQEVfShE+/u6+nVfn5z1uSKNMZJRP98e26SUeip7KaXknxEnZlLXom87Kq0QK6OMr/d/wRn9BOgAzl7hXs5aoPBp8NBtPBAJ9EQ/w4WSRFfBAf4ftQJWsaWi4BvrKFQgxOOy6SIGhR8UHLxH5DkkY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A0AC2ADEF4nGNgZGBgPPD/AIMeEwMDw/9/TEwMQBEUwAMAe4IEwHicY2JgYGBCwoyTMfmM2xF8ACSrAfMAAAAAAAAAEgByAIwAyADIARgBPgFuAa4B8AJeAAB4nGNgZGBg4GEIYWBjAAEmIOYCQgaG/2A+AwASTAF9AHicbY9NbsIwEIVfIFAVpAq1UqXurC66qQg/CxYcAPYs2IfgBFASR45B4gI9Qc/QM/QEXfYMPUpfwiiLFlsef/PmjX8ADPAFD9XwcFvHarRww+zCbdJA2Cc/CXfQx7Nwl/pQuIdXzIT7eEDIEzy/Ou0eTriFO7wJt6m/C/vkD+EOHvEp3KX+LdzDGj/Cfbx4s31k8mFscrfSyTENbZM3sNa23JtcTYJxoy11rm3o9FZtzqo8JVPnYhVbk6kFqzpNjSqsOejIBTvnivloFIseRCbDHhEMcv46rneHFTQSHJHyx/ZK/b+yZodFyUqVK0wQYHzFt6Qvr70hM40tvRucGUuceOeUqqNbcVn2ZKSF9Gq+JyUrFHXtQCWiHmBXdxWYY8QZ//EH9SuyX24OYHIAAAB4nG3FQRKCMAwF0HxsCiqXZGKEjqXpNGXB7XHGrW/zaKAfpv9mIgy4IYARMWLCHQ88MbNsKp8olq35+O3Yi7M0c2fdaz9DKm+LVYukHGo+PDbNtryi69Jkm1x7T2V1ogsarhrd") format("woff");
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -2698,6 +2698,11 @@ button.w2ui-btn-small:focus:before {
font-size: 13px;
line-height: 1.5;
}
.w2ui-popup .w2ui-prompt textarea {
width: 100%;
height: 50px;
resize: none;
}
/*************************************************
* ---- Sidebar ----
*/
Expand Down
29 changes: 23 additions & 6 deletions dist/w2ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -12900,6 +12900,7 @@ var w2prompt = function (label, title, callBack) {
label : '',
value : '',
attrs : '',
textarea : false,
title : w2utils.lang('Notification'),
ok_text : w2utils.lang('Ok'),
cancel_text : w2utils.lang('Cancel'),
Expand Down Expand Up @@ -12931,10 +12932,16 @@ var w2prompt = function (label, title, callBack) {
w2popup.message({
width : options.width,
height : options.height,
body : '<div class="w2ui-centered" style="font-size: 13px;">'+
' <label style="margin-right: 10px;">' + options.label + ':</label>'+
' <input id="w2prompt" '+ options.attrs +'>'+
'</div>',
body : (options.textarea
? '<div class="w2ui-prompt" style="font-size: 13px; padding: 15px 10px 0 10px;">'+
' <div style="padding-bottom: 5px">' + options.label + '</div>'+
' <textarea id="w2prompt" '+ options.attrs +'></textarea>'+
'</div>'
: '<div class="w2ui-prompt w2ui-centered" style="font-size: 13px;">'+
' <label style="margin-right: 10px;">' + options.label + '</label>'+
' <input id="w2prompt" '+ options.attrs +'>'+
'</div>'
),
buttons : '<button id="Ok" class="w2ui-popup-btn w2ui-btn">' + options.ok_text + '</button><button id="Cancel" class="w2ui-popup-btn w2ui-btn">' + options.cancel_text + '</button>',
onOpen: function () {
$('#w2prompt').val(options.value);
Expand Down Expand Up @@ -12971,8 +12978,18 @@ var w2prompt = function (label, title, callBack) {
title : options.title,
modal : true,
showClose : false,
body : '<div class="w2ui-centered" style="font-size: 13px;"><label style="margin-right: 10px;">' + options.label + ':</label><input id="w2prompt"></div>',
buttons : '<button id="Ok" class="w2ui-popup-btn w2ui-btn">' + options.ok_text + '</button><button id="Cancel" class="w2ui-popup-btn w2ui-btn">' + options.cancel_text + '</button>',
body : (options.textarea
? '<div class="w2ui-prompt" style="font-size: 13px; padding: 15px 10px 0 10px;">'+
' <div style="padding-bottom: 5px">' + options.label + '</div>'+
' <textarea id="w2prompt" '+ options.attrs +'></textarea>'+
'</div>'
: '<div class="w2ui-prompt w2ui-centered" style="font-size: 13px;">'+
' <label style="margin-right: 10px;">' + options.label + '</label>'+
' <input id="w2prompt" '+ options.attrs +'>'+
'</div>'
),
buttons : '<button id="Ok" class="w2ui-popup-btn w2ui-btn">' + options.ok_text + '</button>'+
'<button id="Cancel" class="w2ui-popup-btn w2ui-btn">' + options.cancel_text + '</button>',
onOpen: function (event) {
// do not use onComplete as it is slower
setTimeout(function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/w2ui.min.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/w2ui.min.js

Large diffs are not rendered by default.

52 changes: 48 additions & 4 deletions docs/overview/popup-dialogs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h3>Dialogs</h3>
Two most frequent dialogs are alert and confirm. In the case of a alert you just need to display a message to the user and require no feedback
besides user acknowledgement. Confirm dialog has similar purpose, but expects from the user a response by accepting or declining the message.
The w2ui library includes these dialogs for your convenience.
The most frequent dialogs are alert, confirm and prompt. In the case of a alert you just need to display a message to the user
and require no feedback besides user acknowledgement. Confirm dialog has similar purpose, but expects from the user a response
by accepting or declining the message. Prompot waits for user input. The w2ui library includes these dialogs for your convenience.
<div style="height: 20px"></div>

<h4>w2alert (msg, [title], [callBack])</h4>
Expand All @@ -16,6 +16,13 @@ <h4>w2alert (msg, [title], [callBack])</h4>
callBack, is a call back function when dialog is closed.
<div style="height: 20px"></div>

<textarea class="javascript">
w2alert('This is an alert').done(function () {
// call back when alert closed
});
</textarea>


<h4>w2confirm (msg, [title], [callBack])</h4>

The confirm dialog can be called in the following way:
Expand All @@ -30,7 +37,7 @@ <h4>w2confirm (msg, [title], [callBack])</h4>
You can optionally supply title for the message and a call back function.
<div style="height: 20px"></div>

<h4>w2confirm (options)</h4>
<h4>w2confirm(options)</h4>

You can optionally call w2confirm passing an object with options. This options object has following structure:

Expand Down Expand Up @@ -66,3 +73,40 @@ <h4>w2confirm (options)</h4>
console.log("user clicked NO")
});
</textarea>


<h4>w2prompt(label, [title], [callBack])</h4>

Prompts user to enter value. Instead of passing label, title, and callBack, you can call w2prompt in the following way:

<textarea class="javascript">
w2confirm({
label : 'Enter value',
value : '0',
attrs : 'size=6'
})
.change(function () {
console.log('Input value changed.');
})
.ok(function () {
console.log("User clicked ok.")
});
</textarea>

<h4>w2prompt(options)</h4>

Following properties are supported:

<textarea class="javascript">
options = {
label : '', // label for the input control
value : '', // initial value of input
attrs : '', // attributes for input control
title : 'Notification', // title of dialog
ok_text : 'Ok', // text of Ok button
cancel_text : 'Cancel', // text of Cancel button
width : 400, // width of the dialog
height : 220, // height of dialog
callBack : null // callBack function, if any
}
</textarea>

0 comments on commit d630744

Please sign in to comment.