terebentina / sco.js Goto Github PK
View Code? Open in Web Editor NEWJavascript extensions for twitter bootstrap
Home Page: http://projects.5mins.me/sco.js
License: Apache License 2.0
Javascript extensions for twitter bootstrap
Home Page: http://projects.5mins.me/sco.js
License: Apache License 2.0
As the title says
the #collapse example for
triggerHtml: {on: 'show less', off: 'show more'}
is not working in the demo
Can your smart positioning of tooltips be apptied to Bootstrap popovers?
I find a problem about scojs_modal.
This is my code:
window.DialogEditPwd = $.scojs_modal({
target:'#modal_changepwd',
title:'change password',
remote:'manage/staffManage/changepwd.jsp',
keyboard: false
});
window.DialogEditPwd.show();
When the code first run,no problem.
When the code second run,$.scojs_modal is undefined.
My jquery is not good,please help me thanks.
If you try to start the countdown timer with an until value that is < 60 seconds, it doesn't display.
Adding a check for any seconds will fix this:
if (left.s > 1) {started = true}
if (started) {
str += ' ' + left.s + data.strings.s;
}
Right now the only way to create a modal with buttons is to use the confirm plugin(which is specialized), or to write the markup for a modal and then point the modal plugin to the element as the target -- which IMO defeats the point of using a plugin to create modals in the first place.
Could you add a buttons option to the modal so that doing something like
var modal = $.scojs_modal({
buttons: { Whatever: function() { do.something() } }
}
would create buttons for the dialog?
Since most wysiwyg editors are using a separate iframe/element to write the text, the textarea of the form is not updated before submitting the form.
So even if the user writes something in the editor, the validation plugin thinks the textarea is empty.
A onBeforeValidation callback is required to give the chance to the editor to update the textarea
Will you plan to upgrade sco.js for the future?
This is the code before :
//========================================= begin
var
if (!$modal.length) {
confirm dialog yes cannel button cannot display some times, because
_the test page code is blow:_
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form class="form-horizontal">
<div class="form-group">
<div class="form-control">
<input type="text" id="nodeName">
</div>
</div>
</form>
<script>
</script>
</body>
</html>
I use the branch bs-3 with boostrap3 , the error just will happened that id named 'nodeName' with this structure and at same time exist <script> tag。
Could you release minfied files so it's easy to integrate in any project?
Thanks
hear is my code:please help!
<link href="http://cdn.bootcss.com/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="js/sco.modal.js"></script>
<script src="js/sco.ajax.js"></script>
<a data-trigger="modal" href="news/index_news/1.html" data-title="Modal title" class="btn">Launch demo modal</a>
<a data-trigger="ajax" href="news/index_news/1.html" data-target="#ajax_target" class="btn">Ajax demo</a>
<div id="ajax_target">Remote content will be loaded here</div>
i cant use the countdowner with jquery 1.10.2
Hello,
We have just add sco.js to twittstrap resources list
http://twittstrap.com/resources/details/sco-js
Under : Components
Regards
When using data-cssclass=
the css class that is added to the modal is sometimes present on subsequent modals on the page that are not using this option. This creates the issue of modals having unwanted styling. This happens occasionally, not every time (tested mac/chrome).
With the 1.0.2 version there is some warnings when the package is installed through Bower:
$ bower install sco.js --save
bower sco.js#* not-cached git://github.com/terebentina/sco.js.git#*
bower sco.js#* resolve git://github.com/terebentina/sco.js.git#*
bower sco.js#* download https://github.com/terebentina/sco.js/archive/1.0.2.tar.gz
bower sco.js#* extract archive.tar.gz
bower sco.js#* invalid-meta sco.js is missing "main" entry in bower.json
bower sco.js#* invalid-meta sco.js is missing "ignore" entry in bower.json
bower sco.js#* resolved git://github.com/terebentina/sco.js.git#1.0.2
bower sco.js#~1.0.2 install sco.js#1.0.2
sco.js#1.0.2 public\lib\sco.js
Would be great if you could add a bower.json
with the ignore
statement. Something like this:
...
"ignore": [
"**/.*",
"tests"
],
...
Currently the easing of the collapse is quite slow, would be nice to have speed as an option
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.