spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af in curate-0.2.0 vs spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af in curate-0.3.1

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1367348144.856913: @value"{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1368726328.420983: @value"{I" class:ETI"BundledAsset;FI"logical_path;TI"application.js;TI" pathname;TI"0$root/app/assets/javascripts/application.js;FI"content_type;TI"application/javascript;TI" -mtime;TI"2013-04-23T13:24:55-04:00;TI" length;TiI" digest;TI"%3fc18b5c180c9002a4f3c6ed5fda547f;FI" source;TI"/*! +mtime;TI"2013-05-16T13:45:03-04:00;TI" length;TiI" digest;TI"%feed31321f2c4813dfaa62034a8918bb;FI" source;TI"/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ @@ -10950,11 +10950,11 @@ label.append(checkbox); label.append(" "); label.append(span); function update_state_for(state) { - checkbox.attr("checked", state); + checkbox.prop("checked", state); label.toggleClass("checked", state); if (state) { //Set the Rails hidden field that fakes an HTTP verb //properly for current state action. form.find("input[name=_method]").val("delete"); @@ -13140,10 +13140,11 @@ this.weekStart = ((options.weekStart||this.element.data('date-weekstart')||dates[this.language].weekStart||0) % 7); this.weekEnd = ((this.weekStart + 6) % 7); this.startDate = -Infinity; this.endDate = Infinity; this.daysOfWeekDisabled = []; + this.beforeShowDay = options.beforeShowDay || $.noop; this.setStartDate(options.startDate||this.element.data('date-startdate')); this.setEndDate(options.endDate||this.element.data('date-enddate')); this.setDaysOfWeekDisabled(options.daysOfWeekDisabled||this.element.data('date-days-of-week-disabled')); this.fillDow(); this.fillMonths(); @@ -13241,25 +13242,37 @@ this._applyEvents(this._secondaryEvents); }, _detachSecondaryEvents: function(){ this._unapplyEvents(this._secondaryEvents); }, + _trigger: function(event, altdate){ + var date = altdate || this.date; + date = new Date(date.getTime() + (date.getTimezoneOffset()*60000)); + this.element.trigger({ + type: event, + date: date, + format: $.proxy(function(altformat){ + var format = this.format; + if (altformat) + format = DPGlobal.parseFormat(altformat); + return DPGlobal.formatDate(date, format, this.language); + }, this) + }); + }, + show: function(e) { if (!this.isInline) this.picker.appendTo('body'); this.picker.show(); this.height = this.component ? this.component.outerHeight() : this.element.outerHeight(); this.place(); this._attachSecondaryEvents(); if (e) { e.preventDefault(); } - this.element.trigger({ - type: 'show', - date: this.date - }); + this._trigger('show'); }, hide: function(e){ if(this.isInline) return; if (!this.picker.is(':visible')) return; @@ -13274,14 +13287,11 @@ this.isInput && this.element.val() || this.hasInput && this.element.find('input').val() ) ) this.setValue(); - this.element.trigger({ - type: 'hide', - date: this.date - }); + this._trigger('hide'); }, remove: function() { this.hide(); this._detachEvents(); @@ -13315,11 +13325,10 @@ var formatted = this.getFormattedDate(); if (!this.isInput) { if (this.component){ this.element.find('input').val(formatted); } - this.element.data('date', formatted); } else { this.element.val(formatted); } }, @@ -13381,10 +13390,11 @@ if(arguments && arguments.length && (typeof arguments[0] === 'string' || arguments[0] instanceof Date)) { date = arguments[0]; fromArgs = true; } else { date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val(); + delete this.element.data().date; } this.date = DPGlobal.parseDate(date, this.format, this.language); if(fromArgs) this.setValue(); @@ -13473,12 +13483,13 @@ month = d.getUTCMonth(), startYear = this.startDate !== -Infinity ? this.startDate.getUTCFullYear() : -Infinity, startMonth = this.startDate !== -Infinity ? this.startDate.getUTCMonth() : -Infinity, endYear = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity, endMonth = this.endDate !== Infinity ? this.endDate.getUTCMonth() : Infinity, - currentDate = this.date && this.date.valueOf(); - this.picker.find('.datepicker-days thead th.switch') + currentDate = this.date && this.date.valueOf(), + tooltip; + this.picker.find('.datepicker-days thead th.datepicker-switch') .text(dates[this.language].months[month]+' '+year); this.picker.find('tfoot th.today') .text(dates[this.language].today) .toggle(this.todayBtn !== false); this.updateNavArrows(); @@ -13511,11 +13522,27 @@ } } clsName = this.getClassNames(prevMonth); clsName.push('day'); - html.push('<td class="'+clsName.join(' ')+'">'+prevMonth.getUTCDate() + '</td>'); + + var before = this.beforeShowDay(prevMonth); + if (before === undefined) + before = {}; + else if (typeof(before) === 'boolean') + before = {enabled: before}; + else if (typeof(before) === 'string') + before = {classes: before}; + if (before.enabled === false) + clsName.push('disabled'); + if (before.classes) + clsName = clsName.concat(before.classes.split(/\s+/)); + if (before.tooltip) + tooltip = before.tooltip; + + clsName = $.unique(clsName); + html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>'); if (prevMonth.getUTCDay() == this.weekEnd) { html.push('</tr>'); } prevMonth.setUTCDate(prevMonth.getUTCDate()+1); } @@ -13595,11 +13622,11 @@ var target = $(e.target).closest('span, td, th'); if (target.length == 1) { switch(target[0].nodeName.toLowerCase()) { case 'th': switch(target[0].className) { - case 'switch': + case 'datepicker-switch': this.showMode(1); break; case 'prev': case 'next': var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className == 'prev' ? -1 : 1); @@ -13630,26 +13657,20 @@ if (target.is('.month')) { var day = 1; var month = target.parent().find('span').index(target); var year = this.viewDate.getUTCFullYear(); this.viewDate.setUTCMonth(month); - this.element.trigger({ - type: 'changeMonth', - date: this.viewDate - }); + this._trigger('changeMonth', this.viewDate); if ( this.minViewMode == 1 ) { this._setDate(UTCDate(year, month, day,0,0,0,0)); } } else { var year = parseInt(target.text(), 10)||0; var day = 1; var month = 0; this.viewDate.setUTCFullYear(year); - this.element.trigger({ - type: 'changeYear', - date: this.viewDate - }); + this._trigger('changeYear', this.viewDate); if ( this.minViewMode == 2 ) { this._setDate(UTCDate(year, month, day,0,0,0,0)); } } this.showMode(-1); @@ -13688,14 +13709,11 @@ this.date = date; if (!which || which == 'view') this.viewDate = date; this.fill(); this.setValue(); - this.element.trigger({ - type: 'changeDate', - date: this.date - }); + this._trigger('changeDate'); var element; if (this.isInput) { element = this.element; } else if (this.component){ element = this.element.find('input'); @@ -13827,14 +13845,11 @@ case 9: // tab this.hide(); break; } if (dateChanged){ - this.element.trigger({ - type: 'changeDate', - date: this.date - }); + this._trigger('changeDate'); var element; if (this.isInput) { element = this.element; } else if (this.component){ element = this.element.find('input'); @@ -14102,11 +14117,11 @@ return date.join(''); }, headTemplate: '<thead>'+ '<tr>'+ '<th class="prev"><i class="icon-arrow-left"/></th>'+ - '<th colspan="5" class="switch"></th>'+ + '<th colspan="5" class="datepicker-switch"></th>'+ '<th class="next"><i class="icon-arrow-right"/></th>'+ '</tr>'+ '</thead>', contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>', footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr></tfoot>' @@ -14286,10 +14301,25 @@ monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"], today: "Hoy" }; }(jQuery)); /** + * Estonian translation for bootstrap-datepicker + * Ando Roots <https://github.com/anroots> + */ + +;(function($){ + $.fn.datepicker.dates['et'] = { + days: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev", "Pühapäev"], + daysShort: ["Püh", "Esm", "Tei", "Kol", "Nel", "Ree", "Lau", "Sun"], + daysMin: ["P", "E", "T", "K", "N", "R", "L", "P"], + months: ["Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"], + monthsShort: ["Jaan", "Veeb", "Märts", "Apr", "Mai", "Juuni", "Juuli", "Aug", "Sept", "Okt", "Nov", "Dets"], + today: "Täna" + }; +}(jQuery)); +/** * Finnish translation for bootstrap-datepicker * Jaakko Salonen <https://github.com/jsalonen> */ ;(function($){ @@ -14297,11 +14327,13 @@ days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai", "sunnuntai"], daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau", "sun"], daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la", "su"], months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"], monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"], - today: "tänään" + today: "tänään", + weekStart: 1, + format: "d.m.yyyy" }; }(jQuery)); /** * French translation for bootstrap-datepicker * Nico Mollet <nico.mollet@gmail.com> @@ -14475,10 +14507,25 @@ today: "Šodien", weekStart: 1 }; }(jQuery)); /** + * Macedonian translation for bootstrap-datepicker + * Marko Aleksic <psybaron@gmail.com> + */ + +;(function($){ + $.fn.datepicker.dates['mk'] = { + days: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота", "Недела"], + daysShort: ["Нед", "Пон", "Вто", "Сре", "Чет", "Пет", "Саб", "Нед"], + daysMin: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са", "Не"], + months: ["Јануари", "Февруари", "Март", "Април", "Мај", "Јуни", "Јули", "Август", "Септември", "Октомври", "Ноември", "Декември"], + monthsShort: ["Јан", "Фев", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Ное", "Дек"], + today: "Денес" + }; +}(jQuery)); +/** * Malay translation for bootstrap-datepicker * Ateman Faiz <noorulfaiz@gmail.com> */ ;(function($){ @@ -14623,11 +14670,12 @@ days: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота", "Воскресенье"], daysShort: ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Вск"], daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"], - today: "Сегодня" + today: "Сегодня", + weekStart: 1 }; }(jQuery)); /** * Slovak translation for bootstrap-datepicker * Marek Lichtner <marek@licht.sk> @@ -14658,10 +14706,26 @@ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"], today: "Danes" }; }(jQuery)); /** + * Albanian translation for bootstrap-datepicker + * Tomor Pupovci <http://www.github.com/ttomor> + */ + +;(function($){ + $.fn.datepicker.dates['sq'] = { + days: ["E Diel", "E Hënë", "E martē", "E mërkurë", "E Enjte", "E Premte", "E Shtunë", "E Diel"], + daysShort: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu", "Die"], + daysMin: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sht", "Di"], + months: ["Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"], + monthsShort: ["Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Korr", "Gu", "Sht", "Tet", "Nën", "Dhjet"], + today: "Sot" + }; +}(jQuery)); + +/** * Swedish translation for bootstrap-datepicker * Patrik Ragnarsson <patrik@starkast.net> */ ;(function($){ @@ -14804,21 +14868,24 @@ $activeFieldControls = $activeField.children('.field-controls'), $removeControl = this.remover.clone(), $newField = $activeField.clone(), $listing = $('.listing', this.element), $warningSpan = $("<span class=\'message warning\'>cannot add new empty field</span>"); - if ($activeField.children('input').val() == '') { + if ($activeField.children('input').val() === '') { $listing.children('.warning').remove(); $listing.append($warningSpan); } else{ $listing.children('.warning').remove(); $('.add', $activeFieldControls).remove(); $activeFieldControls.prepend($removeControl); - $newField.children('input').val(''); - $newField.children('input').focus() + $newChildren = $newField.children('input'); + $newChildren. + val(''). + removeProp('required'); $listing.append($newField); + $newChildren.first().focus(); this._trigger("add"); } }, remove_from_list: function( event ) { @@ -14833,11 +14900,11 @@ _destroy: function() { this.actions.remove(); $('.field-wrapper', this.element).removeClass("input-append"); this.element.removeClass( "managed" ); - }, + } }); })(jQuery); $(function(){ //NOTE: This function is tightly coupled with the catalog index markup $('.show-details').on('click', function(event){ @@ -14927,12 +14994,19 @@ event.preventDefault(); $addControl.click() $removeControl.click() } }); - $('.multi_value.control-group').manage_fields() + $('.multi_value.control-group').manage_fields(); + // Collapse all of the accordion body elements except the first + // $('.accordion-body').each(function(index){ + // if(index != 0) { + // $(this).removeClass('in'); + // } + // }); + $('.datepicker').datepicker({ format: 'yyyy-mm-dd' }); }); // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. @@ -14946,6 +15020,6 @@ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // ; -;TI"required_assets_digest;TI"%2fdcb3d7eba92b61586732cb84839dd7;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F +;TI"required_assets_digest;TI"%42b6d671c248897e307f66710cc2060d;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F \ No newline at end of file