mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
3
app/assets/javascripts/admin/admin.js.coffee
Normal file
3
app/assets/javascripts/admin/admin.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/admin/call_for_papers.js.coffee
Normal file
3
app/assets/javascripts/admin/call_for_papers.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/admin/conference.js.coffee
Normal file
3
app/assets/javascripts/admin/conference.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/admin/people.js.coffee
Normal file
3
app/assets/javascripts/admin/people.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/admin/users.js.coffee
Normal file
3
app/assets/javascripts/admin/users.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/admin/venue.js.coffee
Normal file
3
app/assets/javascripts/admin/venue.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
74
app/assets/javascripts/application.js
Normal file
74
app/assets/javascripts/application.js
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
||||
// listed below.
|
||||
//
|
||||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
||||
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
||||
//
|
||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
// the compiled file.
|
||||
//
|
||||
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
||||
// GO AFTER THE REQUIRES BELOW.
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require jquery-ui
|
||||
//= require jquery-fileupload
|
||||
//= require twitter/bootstrap
|
||||
//= require cocoon
|
||||
|
||||
$(function() {
|
||||
|
||||
$('.dropdown-toggle').dropdown();
|
||||
$("#conference-start-datepicker").datepicker({
|
||||
dateFormat: 'yy/mm/dd',
|
||||
numberOfMonths: 2,
|
||||
onSelect: function(selected) {
|
||||
$("#conference-end-datepicker").datepicker("option","minDate", selected)
|
||||
}
|
||||
});
|
||||
$("#conference-end-datepicker").datepicker({
|
||||
dateFormat: 'yy/mm/dd',
|
||||
numberOfMonths: 2,
|
||||
onSelect: function(selected) {
|
||||
$("#conference-start-datepicker").datepicker("option","maxDate", selected)
|
||||
$("#cfp-hard-datepicker").datepicker("option","minDate", selected)
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#cfp-hard-datepicker").datepicker({
|
||||
dateFormat: 'yy/mm/dd',
|
||||
numberOfMonths: 2,
|
||||
onSelect: function(selected) {
|
||||
$("#conference-end-datepicker").datepicker("option","maxDate", selected)
|
||||
$("#conference-start-datepicker").datepicker("option","maxDate", selected)
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$(".comment-reply-link").click(function(){
|
||||
$(".comment-reply", $(this).parent()).toggle();
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#event-comment-link").click(function(){
|
||||
$("#comments-div").toggle();
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".comment-reply").hide();
|
||||
$(".user-details-popover").popover();
|
||||
$("#comments-div").hide();
|
||||
});
|
||||
|
||||
function word_count(text, divId){
|
||||
var r = 0;
|
||||
var input = text.value.replace(/\s/g,' ');
|
||||
var word_array = input.split(' ');
|
||||
for (var i=0; i < word_array.length; i++) {
|
||||
if (word_array[i].length > 0) r++;
|
||||
}
|
||||
|
||||
$('#' + divId).text(r);
|
||||
}
|
||||
4
app/assets/javascripts/bootstrap.js.coffee
Normal file
4
app/assets/javascripts/bootstrap.js.coffee
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
jQuery ->
|
||||
$("a[rel=popover]").popover()
|
||||
$(".tooltip").tooltip()
|
||||
$("a[rel=tooltip]").tooltip()
|
||||
3
app/assets/javascripts/home.js.coffee
Normal file
3
app/assets/javascripts/home.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
Loading…
Add table
Add a link
Reference in a new issue