Jifty

 view release on metacpan or  search on metacpan

Changelog  view on Meta::CPAN

 * Bail early with exit value, if database drop or create fails
 * Do not load po files by default anymore.  You can provide l10n => 1
   for tests requiring po loading.


VIEW
====
 * Better integration between views, using a common
   String::BufferStack.  This allows cross-calling between
   Template::Declare and HTML::Mason templates.
 * Kill our custom popup notifications in favor of jGrowl.
   Additionally, use Behavior to change full-page action messages into
   sticky jGrowl messages.
 * Added a 'multiple' flag for select form field
 * Make the default "Loading..." display as an animated gif spinner
 * Support for "loading" fragments for lazy regions.
 * Add, and respect, the calendar-starts-monday element class for
   calendar javascript.
 * Add a render_hidden to Jifty::View::Declare::Helpers


Changelog  view on Meta::CPAN

   'hidden') - clkao

 * Fix menu activation for menu items which are defined with link instead of
   url/label - trs

 * Fix title handling in Web::Form::Field::Select - sartak

 * Fixed missing HTML escaping on option value attributes in select form
   fields. - sterling

 * Inserted the missing jifty-result-popup DIV on the Mason page wrapper.
   - sterling

 * Jifty::Web: removed long-gone loc.js (deleted at #4324) from
   javascript_libs - ishigaki

 * Make dropdown/context menus a reasonable fixed width - trs

 * Make the YUI menu.css usable - trs

 * Move our own Form.Element.* methods to Jifty.Form.Element.* and mark the

Changelog  view on Meta::CPAN

 * zh_tw l10n for Authenication::Password plugin. - clkao

BUGFIX
======

 * A temporary fix for rico.js, which is defining the obsoleted (in
   Prototype) Object.prototype.extend which and then breaks all calls
   to jQuery.fn.extend.  That means all methods with jQuery.fn.extend
   were simply not there. For instance, jQuery("div.secret").show() - gugod

 * Added missing jifty-result-popup div to the page detritus section of
   Jifty::View::Declare::Page. - sterling

 * Allow users to name their apps in lowercase (as pragmas ?!). Reported by
   SteveH++ - jesse

 * Bring the default back, but at 0.0.0 to prevent uninitialized complaints.
   - sterling

 * Class::Accessor::Fast cleanups - jesse

Changelog  view on Meta::CPAN

   found. - sterling

 * Rather than helpfully failing to load model classes that have
   compiletime errors, actually die with the error that caused the class
   not to load. - jesse

 * Remove debug info. - clkao

 * Remove debugging statement - alexmv

 * Removing the display style from the jifty-result-popup, which is breaking
   it. - sterling

 * Revert clkao's fixes for now because they break apps :/ - sartak

 * Revert r4117 as the element readiness state is not compatible with what it
   was. - clkao

 * Revert r4435 because it breaks Safari 3.0.4 - sartak

 * Reverting the addition of these files which were added by a push error.

Changelog  view on Meta::CPAN


 * Without the conditional we'll hide errors as soon as we display them - trs

 * Add explicit hide/show for the error, warning, and canonicalization note
   divs. This solves some long time ugliness on IE. However, it is not perfect
   as I am still getting some rendering issues on IE. Does not seem to break
   anything on FF. - sterling

 * Fix a fragment update regression caused by the trimclient merge. - clkao

*              Make enter key submit in the address search popup.
* Fix the close link in ambigious address popup. - clkao

 * Add some classes - trs

 - CRUD view: Minor refactoring for easy wording change
 - Provide the D in CRUD - trs

 * CRUD: Don't bother showing edit link if current user can't - clkao

 - Plugin CSS and JS (which should be put in
   share/plugin/Jifty/Plugin/Foo/web/static/{css,js}) is now compressed by

Changelog  view on Meta::CPAN

* Fix calendar positioning bug and make sure it works when the date field is within a relative or absolutely positioned element
* Test file for Jifty::Client
* First pass at a Jifty client module.
*  English orthography fixes.
* Trailing commas in Perl are good.  In Javascript, they aren't, and sometimes cause IE to barf (like this one).
*  Hide focus border
* Lowering the autocomplete delay
* first-pass editorial run over Continuations.pod.
* Sketchy sketchy handwavy descriptions of page region backend.
  Ramblings totally not expected to be interpretable.
* Wrap the popup notification div in dropshadow wrapper hooks
* Mention webservices in Actions doc
* Double fallback goes the way of the dodo
* Continuation manual
* Set up the output API for mapping of request parameters (input API
  already existed)
* Change method of getting results out of response on continuation RETURN
* Fewer calls to ->arguments, though they might be cached already.
* Not all CurrentUser classes may have a "nobody"
* Jifty::Web::Form:Clickable - provide a bit more info on how to use
  the "returns" field.

lib/Jifty/Plugin/SetupWizard/View.pm  view on Meta::CPAN

            user       => $db_args->{User},
            password   => $db_args->{Password},
            requiressl => $db_args->{RequireSSL},
        },
    );
    $action->validate;
    $action->run;

    if ($action->result->success) {
        p {
            attr { class => 'popup_message' };
            outs $action->result->message;
        }
    }
    else {
        p {
            attr { class => 'popup_error' };
            outs $action->result->error;
        }
    }

    show '/__jifty/admin/setupwizard/database/test_connectivity_button';
};

template '/__jifty/admin/setupwizard/web' => sub {
    p { _("You may change web server settings.") };

lib/Jifty/Web/Form/Field/Select.pm  view on Meta::CPAN

use warnings;
use strict;
 
package Jifty::Web::Form::Field::Select;

use base qw/Jifty::Web::Form::Field/;

=head1 NAME

Jifty::Web::Form::Field::Select - Add a list/popup menu control to your forms

=head1 METHODS

=head2 render_widget

Renders the select widget.

=cut

sub _render_select_begin {

share/po/en.po  view on Meta::CPAN


#: lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm:54
msgid "Authentication token"
msgstr ""

#: lib/Jifty/Plugin/SQLQueries.pm:175 share/web/templates/__jifty/halo:120
msgid "Bindings"
msgstr ""

#: share/web/templates/helpers/calendar.html:4
#. (_ &><body class="calpopup"><a href="#" onclick="window.close()
msgid "Calendar"
msgstr ""

#: lib/Jifty/View/Declare/CRUD.pm:434
msgid "Cancel"
msgstr ""

#: share/web/templates/__jifty/halo:84
msgid "Children"
msgstr ""

share/po/ro.po  view on Meta::CPAN


#: lib/Jifty/Plugin/SQLQueries.pm:175 share/web/templates/__jifty/halo:120
msgid "Bindings"
msgstr ""

#:
msgid "By %1 %2"
msgstr "De %1 %2"

#: share/web/templates/helpers/calendar.html:4
#. (_ &><body class="calpopup"><a href="#" onclick="window.close()
msgid "Calendar"
msgstr "Calendar"

#: lib/Jifty/View/Declare/CRUD.pm:434
msgid "Cancel"
msgstr "Anulează"

#: share/web/templates/__jifty/halo:84
msgid "Children"
msgstr "Copii"

share/po/ru.po  view on Meta::CPAN


#: lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm:54
msgid "Authentication token"
msgstr ""

#: lib/Jifty/Plugin/SQLQueries.pm:175 share/web/templates/__jifty/halo:120
msgid "Bindings"
msgstr ""

#: share/web/templates/helpers/calendar.html:4
#. (_ &><body class="calpopup"><a href="#" onclick="window.close()
msgid "Calendar"
msgstr "Календарь"

#: lib/Jifty/View/Declare/CRUD.pm:434
msgid "Cancel"
msgstr ""

#: share/web/templates/__jifty/halo:84
msgid "Children"
msgstr "Потомки"

share/po/zh_CN.po  view on Meta::CPAN


#:
msgid "Back to the application"
msgstr "回到应用程序"

#: lib/Jifty/Plugin/SQLQueries.pm:175 share/web/templates/__jifty/halo:120
msgid "Bindings"
msgstr "快捷键"

#: share/web/templates/helpers/calendar.html:4
#. (_ &><body class="calpopup"><a href="#" onclick="window.close()
msgid "Calendar"
msgstr "日历"

#: lib/Jifty/View/Declare/CRUD.pm:434
msgid "Cancel"
msgstr "取消"

#: share/web/templates/__jifty/halo:84
msgid "Children"
msgstr "子组件"

share/po/zh_TW.po  view on Meta::CPAN


#:
msgid "Back to the application"
msgstr "回到應用程式"

#: lib/Jifty/Plugin/SQLQueries.pm:175 share/web/templates/__jifty/halo:120
msgid "Bindings"
msgstr "快速鍵"

#: share/web/templates/helpers/calendar.html:4
#. (_ &><body class="calpopup"><a href="#" onclick="window.close()
msgid "Calendar"
msgstr "日曆"

#: lib/Jifty/View/Declare/CRUD.pm:434
msgid "Cancel"
msgstr "取消"

#: share/web/templates/__jifty/halo:84
msgid "Children"
msgstr "子元件"

share/web/static/css/base.css  view on Meta::CPAN

body {
}

body.calpopup {
}

.error {
    color: #a00000;
}

.warning {
    color: #00a0a0;
}

share/web/static/css/facebox.css  view on Meta::CPAN

}

#facebox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  text-align: left;
}

#facebox .popup {
  position: relative;
}

#facebox table {
  border-collapse: collapse;
}

#facebox td {
  border-bottom: 0;
  padding: 0;

share/web/static/js/facebox.js  view on Meta::CPAN


  $.extend($.facebox, {
    settings: {
      opacity      : 0,
      overlay      : true,
      loadingImage : '/static/images/facebox/loading.gif',
      closeImage   : '/static/images/facebox/closelabel.gif',
      imageTypes   : [ 'png', 'jpg', 'jpeg', 'gif' ],
      faceboxHtml  : '\
    <div id="facebox" style="display:none;"> \
      <div class="popup"> \
        <table> \
          <tbody> \
            <tr> \
              <td class="tl"/><td class="b"/><td class="tr"/> \
            </tr> \
            <tr> \
              <td class="b"/> \
              <td class="body"> \
                <div class="content"> \
                </div> \

share/web/static/js/facebox.js  view on Meta::CPAN

  /*
   * Public, $.fn methods
   */

  $.fn.facebox = function(settings) {
    init(settings)

    function clickHandler() {
      $.facebox.loading(true)

      // support for rel="facebox.inline_popup" syntax, to add a class
      // also supports deprecated "facebox[.inline_popup]" syntax
      var klass = this.rel.match(/facebox\[?\.(\w+)\]?/)
      if (klass) klass = klass[1]

      fillFaceboxFromHref(this.href, klass)
      return false
    }

    return this.click(clickHandler)
  }

share/web/static/js/jifty.js  view on Meta::CPAN

        if (!jQuery(e).hasClass("focused")) {
            jQuery(e).addClass("focused").focus();
        }
    },
    // Hide with javascript (since the user may have even partially-working CSS
    // but no JS)
    ".jshide": function(e) {
        jQuery(e).hide();
    },
    /* Use jQuery for full-page-refresh notifications, as well */
    '#messages.jifty.results.messages, #errors.jifty.results.messages, .popup_message, .popup_error': function(e) {
        jQuery(e).hide();
    },
    '#messages.jifty.results.messages .message, #errors.jifty.results.messages .error, .popup_message, .popup_error': function(e) {
        var je   = jQuery(e);
        var type = je.attr("class").match(/(message|error)\b/)[0];
        var opt  = {
            sticky: je.hasClass('popup_sticky'),
            theme: 'result-' + type
        };
        if ( je.closest('.jifty.results').length ) opt["life"] = 10000;
        jQuery.jGrowl( e.innerHTML, opt );
    }
});


/* Regions */
// Keep track of the fragments on the page

share/web/static/js/jquery-1.4.1.js  view on Meta::CPAN

		var requestDone = false;

		// Create the request object
		var xhr = s.xhr();

		if ( !xhr ) {
			return;
		}

		// Open the socket
		// Passing null username, generates a login popup on Opera (#2865)
		if ( s.username ) {
			xhr.open(type, s.url, s.async, s.username, s.password);
		} else {
			xhr.open(type, s.url, s.async);
		}

		// Need an extra try/catch for cross domain requests in Firefox 3
		try {
			// Set the correct header, if data is being sent
			if ( s.data || origSettings && origSettings.contentType ) {

share/web/static/js/yui/calendar.js  view on Meta::CPAN


YAHOO.extend(YAHOO.widget.Calendar2up, YAHOO.widget.CalendarGroup);

/**
* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
*/
YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;

/**
 * The CalendarNavigator is used along with a Calendar/CalendarGroup to 
 * provide a Month/Year popup navigation control, allowing the user to navigate 
 * to a specific month/year in the Calendar/CalendarGroup without having to 
 * scroll through months sequentially
 *
 * @namespace YAHOO.widget
 * @class CalendarNavigator
 * @constructor
 * @param {Calendar|CalendarGroup} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached.
 */
YAHOO.widget.CalendarNavigator = function(cal) {
	this.init(cal);

share/web/templates/helpers/calendar.html  view on Meta::CPAN

<& /_elements/header, title => _('Calendar'_ &>
<body class="calpopup">

<a href="#" onclick="window.close(); return false;"><% _('Close window')%></a>

<div class="calendar">
  <table>
    <caption>
      <a class="prev" href="calendar.html?DisplayedMonth=<%$prev_month%>&DisplayedYear=<%$prev_year%>&field=<%$field%>">Prev</a>
      <span class="month"><% $months[$DisplayedMonth-1] %> <% _($DisplayedYear) %></span>
      <a class="next" href="calendar.html?DisplayedMonth=<%$next_month%>&DisplayedYear=<%$next_year%>&field=<%$field%>">Next</a>
    </caption>

t/TestApp/share/web/templates/_elements/wrapper  view on Meta::CPAN

<div class="warning admin_mode">
<%_('Alert')%>: <% Jifty->web->tangent( label => _('Administration mode is enabled.') , url => '/__jifty/admin/')%>
</div>
% }
  <% Jifty->web->render_messages %>
  <% $m->content |n%>
  <& /_elements/keybindings &>
<div id="custom-stuff">Custom Wrapper</div>
  </div>
  <div id="jifty-wait-message" style="display: none"><%_('Loading...')%></div>
  <div id="jifty-result-popup"></div>
% Jifty::View::Mason::Halo->render_component_tree() if (Jifty->config->framework('DevelMode') );
%# This is required for jifty server push.  If you maintain your own
%# wrapper, make sure you have this as well.
</body>
</html>
% Jifty->handler->stash->{'in_body'} = 0;
<%args>
$title => ""
</%args>
<%init>



( run in 2.739 seconds using v1.01-cache-2.11-cpan-364913b4093 )